* concept docs rewritten, adapting to tabular style as in Beast and cppreference.com
* update the readme with correct links and text
* removed necessity to add `storage_tag` member type to storage classes
This commit is contained in:
Hans Dembinski
2019-03-05 01:52:01 +01:00
committed by GitHub
parent d32b225bfc
commit 5dd50985ae
23 changed files with 690 additions and 177 deletions

View File

@@ -140,10 +140,12 @@ int main() {
// is_storage
{
struct A {};
using B = unlimited_storage<>;
using B = std::vector<int>;
using C = unlimited_storage<>;
BOOST_TEST_TRAIT_FALSE((is_storage<A>));
BOOST_TEST_TRAIT_TRUE((is_storage<B>));
BOOST_TEST_TRAIT_FALSE((is_storage<B>));
BOOST_TEST_TRAIT_TRUE((is_storage<C>));
}
// is_indexable
@@ -383,19 +385,6 @@ int main() {
BOOST_TEST_TRAIT_TRUE((is_sample<D>));
}
// has_fixed_size
{
struct A {};
using B = std::vector<int>;
using C = std::tuple<int, int>;
using D = std::array<int, 2>;
BOOST_TEST_NOT(has_fixed_size<A>::value);
BOOST_TEST_NOT(has_fixed_size<B>::value);
BOOST_TEST(has_fixed_size<C>::value);
BOOST_TEST(has_fixed_size<D>::value);
}
// make_default
{
struct A {};