We are committed to provide service 24 X 7

Deals, Shopping, Training, Tools

Tag: 3

C++11 Smart Pointer – Part 3: shared_ptr vs Pointer

In this article we will compare C++11 Smart Pointer Implementation shared_ptr and a normal pointer. Let’s compare shared_ptr and raw pointer based on following aspects i.e. Advertisements Missing ++, – – and [] operator In comparison to a raw pointer, shared_ptr provides only these operators 1.) -> , * 2.)  Comparison Operators Frequently Asked: C++11 …

C++11 Smart Pointer – Part 3: shared_ptr vs PointerRead More

C++11 Multithreading – Part 3: Carefully Pass Arguments to Threads

To Pass arguments to thread’s associated callable object or function just pass additional arguments to the std::thread constructor. By default all arguments are copied into the internal storage of new thread. Lets look at an example Advertisements Passing simple arguments to a std::thread in C++11 #include <iostream> #include <string> #include <thread> void threadCallback(int x, std::string …

C++11 Multithreading – Part 3: Carefully Pass Arguments to ThreadsRead More

C++ : Map Tutorial Part 3: Using User defined class objects as keys in std::map

In this article we will discuss how to use User defined classes as key in std::map. By default std::map uses “operator <” as sorting criteria for keys. For default data types like int and std::string etc, operator < is available by default but for User defined classes operator < is not available by default. Advertisements …

C++ : Map Tutorial Part 3: Using User defined class objects as keys in std::mapRead More

Pandas : How to merge Dataframes by index using Dataframe.merge() – Part 3

In this article we will discuss how to merge two dataframes in index of both the dataframes or index of one dataframe and some column of any other dataframe. Also, we will see how to keep the similar index in merged dataframe. In previous two articles we have discussed about many features of Dataframe.merge(). Therefore …

Pandas : How to merge Dataframes by index using Dataframe.merge() – Part 3Read More

Check if type of a variable is string in Python (3 Ways)

In this article we will discuss three different ways to check if the type of a variable is string or not in python. Check if type of a variable is string in python using isinstance() function Python provides a function to check the type of a variable i.e. Advertisements isinstance(object, classinfo) This function returns True …

Check if type of a variable is string in Python (3 Ways)Read More

Cart

Your Cart is Empty

Back To Shop