Conventions used
There are a number of text conventions used throughout this book.
Code in text
: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: “This is where the genius of std::vector shines; over-allocating reduces the need for frequent and, potentially, computationally costly reallocations.”
A block of code is set as follows:
template <typename T, typename AllocatorPolicy = std::allocator<T>> class CustomVector { // Implementation using AllocatorPolicy for memory // allocation };
Any command-line input or output is written as follows:
Time without reserve: 0.01195 seconds Time with reserve: 0.003685 seconds
Tips or important notes
Appear like this.