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: “The code above generates a vector of normally distributed random numbers and then sorts the vector with both std::sort()
and std::stable_sort()
.”
A block of code is set as follows:
#include <iostream> #include <thread> int main() { std::thread t1([]() { for (int i = 0; i < 100; ++i) { std::cout << "1 " << "2 " << "3 " << "4 " << std::endl; } });
Any command-line input or output is written as follows:
$ clang++ -O0 -g -fsanitize=address -fno-omit-frame-pointer test.cpp –o test $ ASAN_OPTIONS=suppressions=myasan.supp ./test
Tips or important notes
Appear like this.