Category: Fondations for Template Library

Fondations for Template Library

Allocators

Allocators

Encapsulates a memory allocation and deallocation strategy.   Every standard library component that may need to allocate or release storage, from std::string, std::vector, and every container except std::array, to std::shared_ptr and std::function, does so...

exception handling in c++

exception handling in c++

Exceptions provide a way to react to exceptional circumstances (like runtime errors) in our program by transferring control to special functions called handlers.   To catch exceptions we must place a portion of code...

Templates in C++

Templates in C++

Templates are a feature of the C++ programming language that allow functions and classes to operate with generic types. This allows a function or class to work on many different data types without being...

generic programming

generic programming

Generic programming is a style of computer programming in which algorithms are written in terms of to-be-specified-later types that are then instantiated when needed for specific types provided as parameters.   In very simple...