Category Archives: C++

Trivial classes in C++

When a class or struct in C++ has compiler-provided or explicitly defaulted special member functions, then it is a trivial type. It occupies a contiguous… Read More »

std::divides in C++

Function object for performing division. Effectively calls operator / on two instances of type T. Syntax : template struct divides : binary_function { T operator()… Read More »