Function try_reserve

Synopsis

#include <toml/utility.hpp>

template <typename Container>
void try_reserve(Container &container, std::size_t N)

Description

No description yet.

Source

Lines 53-59 in toml/utility.hpp.

template<typename Container>
void try_reserve(Container& container, std::size_t N)
{
    if(N <= container.size()) {return;}
    detail::try_reserve_impl(container, N, detail::has_reserve_method<Container>{});
    return;
}





Add Discussion as Guest

Log in