Scarab  v3.9.3
Project 8 C++ Utility Library
Functions
CLI::enums Namespace Reference

Functions

template<typename T , typename = typename std::enable_if<std::is_enum<T>::value>::type>
std::ostream & operator<< (std::ostream &in, const T &item)
 output streaming for enumerations More...
 
template<typename T , typename = typename std::enable_if<std::is_enum<T>::value>::type>
std::istream & operator>> (std::istream &in, T &item)
 input streaming for enumerations More...
 

Detailed Description

Include the items in this namespace to get free conversion of enums to/from streams. (This is available inside CLI as well, so CLI11 will use this without a using statement).

Function Documentation

◆ operator<<()

std::ostream& CLI::enums::operator<< ( std::ostream &  in,
const T &  item 
)

output streaming for enumerations

Definition at line 227 of file CLI11.hpp.

◆ operator>>()

std::istream& CLI::enums::operator>> ( std::istream &  in,
T &  item 
)

input streaming for enumerations

Definition at line 234 of file CLI11.hpp.