Skip to content
QnA Plus

Code, Create, Conquer: Insights, Algorithms, and Innovation

  • Home
  • Privacy Policy
  • Terms and Conditions
  • Contact
  • Contribute
  • About

C++

  • Home
  • C++
  • Page 4

Assignment Operator Overloading in C++

Posted by By Srikanta July 24, 2023Posted inProgramming, C++No Comments
In C++, we can overload an operator for a user defined class to change its default behavior. C++ provides a default assignment operator, "=", that provides member by member copy.…
Read More

Move Assignment Operator in C++

Posted by By Srikanta July 21, 2023Posted inProgramming, C++No Comments
Just like a move constructor, the move assignment operator also makes a class movable. A movable class enables efficient resource transfer from one object to another. Let's start with an…
Read More

Move Constructor, Enabling Efficient Resource Transfer in C++

Posted by By Srikanta July 21, 2023Posted inProgramming, C++No Comments
From C++11, in addition to a copy constructor, we can have another special constructor called move constructor. The move constructor makes a class movable that enables efficient resource transfer. Let's…
Read More

Copy Constructor in C++

Posted by By Srikanta July 20, 2023Posted inProgramming, C++No Comments
Copy constructor is a special constructor of a class that gets called when an object is initialized from another object. If we don't create a copy constructor, the compiler will…
Read More

std::move – Efficient Resource Transfer from One Object to Another

Posted by By Srikanta July 18, 2023Posted inProgramming, C++No Comments
C++11 introduced this std::move() to enable efficient resource transfer from one object to another. Let's first understand what efficient resource transfer means. #include <iostream> using namespace std; int main() {…
Read More

Posts pagination

Previous page 1 2 3 4 5 6 … 11 Next page
Categories
  • Programming 186
    • C 105
    • C++ 70
    • Python 7
  • Technology 30
  • Networking 6
  • Database 4
  • Others 8

    Popular Posts:

    • Implement Bubble Sort in C 101 views
    • How to install Ping or Ping6 using YUM 80 views
    • How to Implement Periodic and Single Shot Timers in Linux? 64 views
    • C Program to Sleep in Milliseconds 62 views
    • How to Install and Configure MySQL on CentOS: A Complete Guide 45 views
    • Change a Variable from inside a C Function 41 views
    • How to do Asynchronous Operations using boost::asio? 39 views
    • How to Store SVN Password in Encrypted Form in Linux 37 views
    • C++ | Binding a Member Function 34 views
    • How to Re-Indent C Code Using Notepad++ 32 views

    💬
    Chat with Us!

    Copyright © 2015 - 2025 QnA Plus. All rights reserved.
    Scroll to Top
    0
    0
    0
    0
    0
    0