I\'m working my way through some C++ training. So far so good, but I need some help reinforcing some of the concepts I am learning. My question is how do I go about visualiz
Or if you have the boost lib and want to use lambda evaluations you can do it this way ...
template
void bytePattern( const T& object )
{
typedef unsigned char byte_type;
typedef const byte_type* iterator;
std::cout << "Object type:" << typeid( T ).name() << std::hex;
std::for_each(
reinterpret_cast(&object),
reinterpret_cast(&object) + sizeof(T),
std::cout << constant(' ') << ll_static_cast(_1 )&&0xFF );
std::cout << "\n";
}