std::is_void

Defined in header <type_traits> template< class T > struct is_void; (since C++11) Checks whether T is a void type. Provides the member constant value that is equal to true, if T is the type void, const void, volatile void, or const volatile void. Otherwise, value is equal to false. Template parameters T - a type to check Helper variable template template< class T > constexpr bool is_void_v = is_void<T>::value; (since C++17) Inheri

std::codecvt_byname

Defined in header <locale> template< class InternT, class ExternT, class State > class codecvt_byname : public std::codecvt<InternT, ExternT, State>; std::codecvt_byname is a std::codecvt facet which encapsulates multibyte/wide character conversion rules of a locale specified at its construction. Four specializations are provided by the standard library. Defined in header <locale> std::codecvt_byname<char, char, std::mbstate_t> identity convers

std::ceil

Defined in header <cmath> float ceil( float arg ); (1) double ceil( double arg ); (2) long double ceil( long double arg ); (3) double ceil( Integral arg ); (4) (since C++11) 1-3) Computes the smallest integer value not less than arg. 4) A set of overloads or a function template accepting an argument of any integral type. Equivalent to 2) (the argument is cast to double). Parameters arg - floating point value Return value If

Callable

A Callable type is a type, for which the INVOKE operation, as defined by std::function, std::bind, or std::thread::thread is applicable. This operation may be performed explicitly using the library function std::invoke. (since C++17). Requirements The type T satisfies Callable if. Given. f, an object of type T or const T ArgTypes, suitable list of argument types R, suitable return type The following expressions must be valid: Expression Requirements INVOKE(f, std::declval<ArgTyp

Member templates

Template declarations (class, function, and variables (since C++14)) can appear inside a member specification of any class, struct, or union that aren't local classes. #include <iostream> #include <vector> #include <algorithm> struct Printer { // generic functor std::ostream& os; Printer(std::ostream& os) : os(os) {} template<typename T> void operator()(const T& obj) { os << obj << ' '; } // member template }; int main() {

std::shared_ptr::reset

void reset(); (1) (since C++11) template< class Y > void reset( Y* ptr ); (2) (since C++11) template< class Y, class Deleter > void reset( Y* ptr, Deleter d ); (3) (since C++11) template< class Y, class Deleter, class Alloc > void reset( Y* ptr, Deleter d, Alloc alloc ); (4) (since C++11) Replaces the managed object with an object pointed to by ptr. Optional deleter d can be supplied, which is later used to destroy the new object when no shared_ptr

std::abs(float)

Defined in header <cmath> float abs( float arg ); (1) double abs( double arg ); (2) long double abs( long double arg ); (3) double abs( Integral arg ); (4) (since C++11) float fabs( float arg ); (5) double fabs( double arg ); (6) long double fabs( long double arg ); (7) double fabs( Integral arg ); (8) (since C++11) 1-3,5-7) Computes the absolute value of a floating point value arg. 4,8) A set of ov

std::allocator

Defined in header <memory> template< class T > struct allocator; (1) template<> struct allocator<void>; (2) The std::allocator class template is the default Allocator used by all standard library containers if no user-specified allocator is provided. The default allocator is stateless, that is, all instances of the given allocator are interchangeable, compare equal and can deallocate memory allocated by any other instance of the same allocator type.

std::put_time

Defined in header <iomanip> template< class CharT > /*unspecified*/ put_time( const std::tm* tmb, const CharT* fmt ); (since C++11) When used in an expression out << put_time(tmb, fmt), converts the date and time information from a given calendar time tmb to a character string according to format string fmt, as if by calling std::strftime, std::wcsftime, or analog (depending on CharT), according to the std::time_put facet of the locale currently imbued in the ou

std::is_pod

Defined in header <type_traits> template< class T > struct is_pod; (since C++11) If T is a PODType ("plain old data type"), that is, both trivial and standard-layout, provides the member constant value equal true. For any other type, value is false. The behavior is undefined if std::remove_all_extents_t<T> is an incomplete type and not (possibly cv-qualified) void. Template parameters T - a type to check Helper variable template template< cla