summaryrefslogtreecommitdiffstats
path: root/src/boost/tools/boost_install/test/container/quick.cpp
blob: 08f2f62fe62b7ca0b3be965dce47957876a3c576 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright 2018 Peter Dimov.
//
// Distributed under the Boost Software License, Version 1.0.
//
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt

#include <boost/container/pmr/vector.hpp>
#include <boost/core/lightweight_test.hpp>

int main()
{
    boost::container::pmr::vector_of<int>::type v;

    v.push_back( 1 );
    v.push_back( 2 );

    BOOST_TEST_EQ( v.size(), 2 );

    BOOST_TEST_EQ( v[0], 1 );
    BOOST_TEST_EQ( v[1], 2 );

    return boost::report_errors();
}