OpenVPN 3 Core Library
|
Classes | |
struct | Container |
New typename for holding the underlying container type. More... | |
struct | PtrContainer |
same idea as C2os::Container<C>, above; importantly, with a different typename More... | |
Functions | |
template<typename C > | |
const auto | cast (const C &container) |
Provide an instance of C2os::Container<C> from the underlying container. | |
template<typename C > | |
std::ostream & | operator<< (std::ostream &os, const Container< C > &container) |
overload ostream operator<< for the C2os::Container<C> type | |
template<typename C > | |
const auto | cast_deref (const C &container) |
Provide an instance of C2os::PtrContainer<C> from the underlying container. | |
template<typename C > | |
std::ostream & | operator<< (std::ostream &os, const PtrContainer< C > &container) |
overload ostream operator<< for the C2os::PtrContainer<C> type | |
|
inline |
Provide an instance of C2os::Container<C> from the underlying container.
This is the only interface the consumer sees (but see cast_deref, below)
C | underlying container type (deduced from the container param) |
container | instance of the underlying container |
Definition at line 55 of file ostream_containers.hpp.
|
inline |
Provide an instance of C2os::PtrContainer<C> from the underlying container.
This is the only interface the consumer sees if he wants to dereference the contained type T before ostream'ing it
C | underlying container type (deduced from the container param) |
container | instance of the underlying container |
Definition at line 105 of file ostream_containers.hpp.
|
inline |
overload ostream operator<< for the C2os::Container<C> type
C | underlying container type |
os | ostream instance |
container | instance of the underlying container |
Definition at line 69 of file ostream_containers.hpp.
|
inline |
overload ostream operator<< for the C2os::PtrContainer<C> type
C | underlying container type |
os | ostream instance |
container | instance of the underlying container |
Definition at line 119 of file ostream_containers.hpp.