boost_core 0.1.0

Boost C++ library boost_core packaged using Zanbil
Documentation
/*
Copyright 2020 Glen Joseph Fernandes
(glenjofe@gmail.com)

Distributed under the Boost Software License, Version 1.0.
(http://www.boost.org/LICENSE_1_0.txt)
*/
#include <boost/core/allocator_access.hpp>
#include <boost/core/lightweight_test_trait.hpp>

template<class T>
struct A1 {
    typedef T value_type;
};

template<class T>
struct A2 {
    typedef T value_type;
    struct propagate_on_container_move_assignment {
        static const bool value = true;
    };
};

int main()
{
    BOOST_TEST_TRAIT_FALSE((boost::
        allocator_propagate_on_container_move_assignment<A1<int> >::type));
    BOOST_TEST_TRAIT_TRUE((boost::
        allocator_propagate_on_container_move_assignment<A2<int> >::type));
    return boost::report_errors();
}