Keyple Util C++ Library 2.0.0
Reference Terminal Reader API for C++
Functions
std Namespace Reference

Functions

template<typename To , typename From >
std::shared_ptr< To > reinterpret_pointer_cast (std::shared_ptr< From > const &ptr) noexcept
 
std::ostream & operator<< (std::ostream &os, const uint8_t v)
 
std::ostream & operator<< (std::ostream &os, const std::vector< uint8_t > &v)
 
std::ostream & operator<< (std::ostream &os, const std::vector< int > &v)
 
std::ostream & operator<< (std::ostream &os, const std::vector< std::string > &v)
 
std::ostream & operator<< (std::ostream &os, const std::set< std::string > &s)
 
template<class A , class B >
std::ostream & operator<< (std::ostream &os, const std::map< A, B > &s)
 
template<class A , class B >
std::ostream & operator<< (std::ostream &os, const std::map< const A, B > &s)
 
template<typename out >
void split (const std::string &s, const std::regex &re, out result)
 
std::string & ltrim (std::string &s, const char *t=" \t\n\r\f\v")
 
std::string & rtrim (std::string &s, const char *t=" \t\n\r\f\v")
 
std::string & trim (std::string &s, const char *t=" \t\n\r\f\v")
 

Function Documentation

◆ ltrim()

std::string & std::ltrim ( std::string &  s,
const char *  t = " \t\n\r\f\v" 
)
inline

Definition at line 134 of file KeypleStd.h.

◆ operator<<() [1/7]

template<class A , class B >
std::ostream & std::operator<< ( std::ostream &  os,
const std::map< A, B > &  s 
)
inline

Definition at line 92 of file KeypleStd.h.

◆ operator<<() [2/7]

template<class A , class B >
std::ostream & std::operator<< ( std::ostream &  os,
const std::map< const A, B > &  s 
)
inline

Definition at line 108 of file KeypleStd.h.

◆ operator<<() [3/7]

std::ostream & std::operator<< ( std::ostream &  os,
const std::set< std::string > &  s 
)
inline

Definition at line 76 of file KeypleStd.h.

◆ operator<<() [4/7]

std::ostream & std::operator<< ( std::ostream &  os,
const std::vector< int > &  v 
)
inline

Definition at line 53 of file KeypleStd.h.

◆ operator<<() [5/7]

std::ostream & std::operator<< ( std::ostream &  os,
const std::vector< std::string > &  v 
)
inline

Definition at line 62 of file KeypleStd.h.

◆ operator<<() [6/7]

std::ostream & std::operator<< ( std::ostream &  os,
const std::vector< uint8_t > &  v 
)
inline

Definition at line 44 of file KeypleStd.h.

◆ operator<<() [7/7]

std::ostream & std::operator<< ( std::ostream &  os,
const uint8_t  v 
)
inline

Definition at line 35 of file KeypleStd.h.

◆ reinterpret_pointer_cast()

template<typename To , typename From >
std::shared_ptr< To > std::reinterpret_pointer_cast ( std::shared_ptr< From > const &  ptr)
inlinenoexcept

Definition at line 29 of file KeypleStd.h.

◆ rtrim()

std::string & std::rtrim ( std::string &  s,
const char *  t = " \t\n\r\f\v" 
)
inline

Definition at line 142 of file KeypleStd.h.

◆ split()

template<typename out >
void std::split ( const std::string &  s,
const std::regex &  re,
out  result 
)
inline

Definition at line 123 of file KeypleStd.h.

◆ trim()

std::string & std::trim ( std::string &  s,
const char *  t = " \t\n\r\f\v" 
)
inline

Definition at line 150 of file KeypleStd.h.