We are committed to provide service 24 X 7

Deals, Shopping, Training, Tools

Tag: Variables

C++11 Multithreading – Part 7: Condition Variables Explained

In this article we will discuss the usage of Condition Variable in C++11 Multi-threading with example. Condition Variables Condition Variable is a kind of Event used for signaling between two or more threads. One or more thread can wait on it to get signaled, while an another thread can signal this. Advertisements Header file required for condition …

C++11 Multithreading – Part 7: Condition Variables ExplainedRead More

Using std::initializer_list in constructors to initialize member variables

In this article we will discuss how to use std::initializer_list<T> to initialize member variables. Suppose we have a class Point that has 3 member variables representing x, y & Z axis coordinates. It has a parameterized constructor too i.e. Advertisements class Point { int mX; int mY; int mZ; public: Point(int a, int b, int …

Using std::initializer_list in constructors to initialize member variablesRead More

C++11 Lambda : How to capture local variables inside Lambda ?

In this article we will discuss how to capture local variables from outer scope in Lambda. A simple Lambda syntax is, Advertisements [Captured variables](paameters) { function code } Local variables from outer scope can be captured inside Lambda in 2 modes i.e. By Value By Reference Capturing Local Variables by value inside Lambda Function To …

C++11 Lambda : How to capture local variables inside Lambda ?Read More

C++11 Lambda : How to capture member variables inside Lambda function

In this article we will discuss how to capture member variables from outer scope. Suppose we have a class OddCounter to keep the track of odd numbers read by the object. Inside its member function we are creating a lambda function and passing to a STL algorithm std::for_each. Advertisements Now this lambda function needs to capture …

C++11 Lambda : How to capture member variables inside Lambda functionRead More

How to Set, List and Remove Environment Variables in Linux

Environment variables are key-value pair in Linux which are stored permanently or temporarily to be used by applications through shell. In this guide you are going to learn how to setup environment variables in Linux, list them and remove them. The global environment variables are stored in etc/environment. Any changes that is made in this …

How to Set, List and Remove Environment Variables in LinuxRead More

Cart

Your Cart is Empty

Back To Shop