摘自MSDN
void test_vector_constructor()
{
// 0. 无参数,创建空vector
std::vector<int> v0;
//assert宏(如果错误则终止程序,即如果非空终止程序)
assert(v0.empty());
摘自MSDN
void test_vector_constructor()
{
// 0. 无参数,创建空vector
std::vector<int> v0;
//assert宏(如果错误则终止程序,即如果非空终止程序)
assert(v0.empty());