4.4.1
Freundlich's C++ toolkit
Loading...
Searching...
No Matches
Classes | Functions
fcppt::container::buffer Namespace Reference

Classes

class  object
 A contiguous container for uninitialized data that contains a write and a read area. More...
 

Functions

template<typename T , typename A , typename Function >
fcppt::container::buffer::object< T, A > append_from (fcppt::container::buffer::object< T, A > &&_buffer, typename fcppt::container::buffer::object< T, A >::size_type const _size, Function const &_function)
 Appends to a buffer using a function.
 
template<typename T , typename A , typename Function >
fcppt::optional::object< fcppt::container::buffer::object< T, A > > append_from_opt (fcppt::container::buffer::object< T, A > &&_buffer, typename fcppt::container::buffer::object< T, A >::size_type const _size, Function const &_function)
 Appends to a buffer using a function which may fail.
 
template<typename T , typename A >
void swap (fcppt::container::buffer::object< T, A > &, fcppt::container::buffer::object< T, A > &) noexcept
 
template<typename Buffer , typename Function >
Buffer read_from (typename Buffer::size_type const _size, Function const &_function)
 Reads into a buffer using a function.
 
template<typename Buffer , typename Function >
fcppt::optional::object< Buffer > read_from_opt (typename Buffer::size_type const _size, Function const &_function)
 Reads into a buffer using a function which may fail.
 
template<typename T , typename A >
fcppt::container::raw_vector::object< T, A > to_raw_vector (fcppt::container::buffer::object< T, A > &&_buffer) noexcept
 Convert a buffer into a raw_vector.
 

Function Documentation

◆ swap()

template<typename T , typename A >
void fcppt::container::buffer::swap ( fcppt::container::buffer::object< T, A > &  ,
fcppt::container::buffer::object< T, A > &   
)
noexcept