ゴミ箱
|
#include <span.hpp>
Public Types | |
using | element_type = T |
The type of value, including cv qualifiers. More... | |
using | value_type = typename std::remove_const< T >::type |
The type of value of each span element. More... | |
using | index_type = std::ptrdiff_t |
The type of integer used to index the span. More... | |
using | pointer = T * |
A pointer to a span element. More... | |
using | reference = T & |
A reference to a span element. More... | |
using | iterator = pointer |
The iterator used by the container. More... | |
using | const_pointer = T const * |
The const pointer used by the container. More... | |
using | const_reference = T const & |
The const reference used by the container. More... | |
using | const_iterator = const_pointer |
The const iterator used by the container. More... | |
Public Member Functions | |
span ()=default | |
Constructor. More... | |
span (span const &)=default | |
Constructor. More... | |
span & | operator= (span const &)=default |
Assignment. More... | |
span (T *data, std::size_t size) | |
template<class ContiguousContainer , class = typename std::enable_if< detail::is_contiguous_container< ContiguousContainer, T>::value>::type> | |
span (ContiguousContainer &&container) | |
template<class CharT , class Traits , class Allocator > | |
span (std::basic_string< CharT, Traits, Allocator > &s) | |
template<class CharT , class Traits , class Allocator > | |
span (std::basic_string< CharT, Traits, Allocator > const &s) | |
template<class ContiguousContainer > | |
std::enable_if< detail::is_contiguous_container< ContiguousContainer, T >::value, span & >::type | operator= (ContiguousContainer &&container) |
template<class CharT , class Traits , class Allocator > | |
span & | operator= (std::basic_string< CharT, Traits, Allocator > &s) |
template<class CharT , class Traits , class Allocator > | |
span & | operator= (std::basic_string< CharT, Traits, Allocator > const &s) |
bool | empty () const |
Returns true if the span is empty. More... | |
T * | data () const |
Returns a pointer to the beginning of the span. More... | |
std::size_t | size () const |
Returns the number of elements in the span. More... | |
const_iterator | begin () const |
Returns an iterator to the beginning of the span. More... | |
const_iterator | cbegin () const |
Returns an iterator to the beginning of the span. More... | |
const_iterator | end () const |
Returns an iterator to one past the end of the span. More... | |
const_iterator | cend () const |
Returns an iterator to one past the end of the span. More... | |
A range of bytes expressed as a ContiguousContainer
This class implements a non-owning reference to a storage area of a certain size and having an underlying integral type with size of 1.
T | The type pointed to by span iterators |
using boost::beast::span< T >::const_iterator = const_pointer |
The const iterator used by the container.
using boost::beast::span< T >::const_pointer = T const* |
The const pointer used by the container.
using boost::beast::span< T >::const_reference = T const& |
The const reference used by the container.
using boost::beast::span< T >::element_type = T |
The type of value, including cv qualifiers.
using boost::beast::span< T >::index_type = std::ptrdiff_t |
The type of integer used to index the span.
using boost::beast::span< T >::iterator = pointer |
The iterator used by the container.
using boost::beast::span< T >::pointer = T* |
A pointer to a span element.
using boost::beast::span< T >::reference = T& |
A reference to a span element.
using boost::beast::span< T >::value_type = typename std::remove_const<T>::type |
The type of value of each span element.
|
default |
Constructor.
|
default |
Constructor.
|
inline |
Constructor
data | A pointer to the beginning of the range of elements |
size | The number of elements pointed to by data |
|
inlineexplicit |
Constructor
container | The container to construct from |
|
inlineexplicit |
|
inlineexplicit |
|
inline |
Returns an iterator to the beginning of the span.
|
inline |
Returns an iterator to the beginning of the span.
|
inline |
Returns an iterator to one past the end of the span.
|
inline |
Returns a pointer to the beginning of the span.
|
inline |
Returns true
if the span is empty.
|
inline |
Returns an iterator to one past the end of the span.
|
default |
Assignment.
|
inline |
Assignment
container | The container to assign from |
|
inline |
|
inline |
|
inline |
Returns the number of elements in the span.