Author: prodevelopertutorial
Follow this blog to learn more about C, C++, Linux, Competitive Programming concepts, Data Structures.
In this chapter we shall learn about: 1. forward_list introduction. 2. forward_list declaration. 3. Multidimensional std::forward_list 4. Passing std::forward_list to function 5. forward_list member function to iterate over elements. 6. forward_list member function to check the capacity. 7. forward_list member function to access the elements. 8. …
In this chapter we shall learn about: 1. deque introduction. 2. deque declaration. 3. Multidimensional std::deque 4. Passing std::deque to function 5. deque member function to iterate over elements. 6. deque member function to check the capacity. 7. deque member function to access the elements. 8. …
In this chapter we shall learn about: 1. vector introduction. 2. vector declaration. 3. Multidimensional std::vector 4. Passing std::vector to function 5. vector member function to iterate over elements. 6. vector member function to check the capacity. 7. vector member function to access the elements. 8. …
Note: std::array feature is only available in C++11 and above. In this chapter we shall learn about below topics:, 1. array introduction. 2. array declaration. 3. Multidimensional std::array 4. Passing std::array to function 5. array member function to iterate over elements. 6. array member function to …
C++ Structured Template Library. As the name suggests, it is a library, which comes by default with you install any C++ compiler. C++ STL has below 3 important components: C++ Containers: Used to store the data in an organized way. C++ Algorithms: Used to …
std::lock is used to lock multiple mutex at the same time. Syntax: styntax: std::lock(m1, m2, m3, m4); It will be able to lock all the objects in a non deadlock way by using deadlock avoidance algorithm. It will make series of lock, try_lock, and unlock to …
In the previous chapter we studied about promise and future. In this chapter we shall see how to achieve the same using “async” and “future”. “async” is present in namespace std. “std::scync” is used to get asynchronous execution of the tasks. It means, you start a …