Boost C++ Libraries 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 158bba23f5.

buffer (35 of 42 overloads)

Create a new non-modifiable buffer from a contiguous container.

    typename T>
const_buffer buffer(
    T & data,
    typename constraint< is_contiguous_iterator< typename T::iterator >::value, defaulted_constraint >::type  = defaulted_constraint(),
    typename constraint< is_const< typename remove_reference< typename std::iterator_traits< typename T::iterator >::reference >::type >::value, defaulted_constraint >::type  = defaulted_constraint());
Return Value

A const_buffer value equivalent to:

    data.size() ? &data[0] : 0,
    data.size() * sizeof(typename T::value_type));