// The primary distinctions between this vector and std::vector are: // ... // - vector has an explicit data() method for obtaining a pointer to storage // which is safe to call even if the block is empty. This avoids the // common &v[0], &v.front(), and &*v.begin() constructs that trigger false // asserts in STL debugging modes.
Обсуждают сегодня