Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for a snapshot of the develop branch, built from commit b2daa2b34e.
PrevUpHomeNext

buffer (37 of 42 overloads)

Create a new non-modifiable buffer from a span.

template<
    template< typename, std::size_t > class Span,
    typename T,
    std::size_t Extent>
const_buffer buffer(
    const Span< const T, Extent > & span,
    constraint_t< sizeof(T)==1, defaulted_constraint >  = defaulted_constraint(),
    constraint_t< is_same< decltype(span.subspan(0, 0)), Span< T, static_cast< std::size_t >(-1)> >::value, defaulted_constraint >  = defaulted_constraint());
Return Value

const_buffer(span).


PrevUpHomeNext