От: | niXman | https://github.com/niXman | |
Дата: | 05.11.14 20:25 | ||
Оценка: |
#include <boost/container/vector.hpp>
#include <boost/container/static_vector.hpp>
#include <iostream>
int main() {
using vec = boost::container::vector<int>;
vec v0 = {0,1,2,3,4};
vec v1 = {0,1,2,3,4};
std::cout << "'v0 == v1' is " << std::boolalpha << (v0 == v1) << std::endl;
using svec = boost::container::static_vector<int, 10>;
svec s0 = {0,1,2,3,4};
svec s1 = {0,1,2,3,4};
std::cout << "'s0 == s1' is " << std::boolalpha << (s0 == s1) << std::endl;
}
тыц.nixman@sparc-t3:~/tests$ g++ -std=c++11 contvec.cpp -ocontvec && ./contvec
'v0 == v1' is false
's0 == s1' is false