
Use Static Allocation for Fixed Size Memory Buffers
Imagine you have to write a simple stock quote application that accepts stock symbols and retrieves their current values. Using a std::string object to represent a stock symbol is inefficient because std::string allocates an initial buffer that has 16 to 64 characters, depending on the actual platform. Since a stock