Feel++ 0.111.0-preview.14
Finite Element Embedded Library in C++
nlohmann::detail::output_vector_adapter< CharType, AllocatorType > Class Template Reference

output adapter for byte vectors More...

+ Inheritance diagram for nlohmann::detail::output_vector_adapter< CharType, AllocatorType >:
+ Collaboration diagram for nlohmann::detail::output_vector_adapter< CharType, AllocatorType >:

Public Member Functions

 __attribute__ ((__nonnull__(2))) void write_characters(const CharType *s
 
 output_vector_adapter (std::vector< CharType, AllocatorType > &vec) noexcept
 
void write_character (CharType c) override
 
- Public Member Functions inherited from nlohmann::detail::output_adapter_protocol< CharType >
output_adapter_protocol & operator= (const output_adapter_protocol &)=default
 
output_adapter_protocol & operator= (output_adapter_protocol &&) noexcept=default
 
 output_adapter_protocol (const output_adapter_protocol &)=default
 
 output_adapter_protocol (output_adapter_protocol &&) noexcept=default
 
virtual void write_character (CharType c)=0
 
virtual void write_characters (const CharType *s, std::size_t length)=0
 

Public Attributes

std::size_t length override
 

Detailed Description

template<typename CharType, typename AllocatorType = std::allocator<CharType>>
class nlohmann::detail::output_vector_adapter< CharType, AllocatorType >

output adapter for byte vectors

Member Function Documentation

◆ write_character()

template<typename CharType , typename AllocatorType = std::allocator<CharType>>
void nlohmann::detail::output_vector_adapter< CharType, AllocatorType >::write_character ( CharType  c)
overridevirtual

Member Data Documentation

◆ override

template<typename CharType , typename AllocatorType = std::allocator<CharType>>
std::size_t length nlohmann::detail::output_vector_adapter< CharType, AllocatorType >::override
Initial value:
{
std::copy(s, s + length, std::back_inserter(v))