MyraMath
|
Routines for printing the contents of various std::container's to a std::ostream using operator <<. More...
#include <iostream>
#include <sstream>
#include <vector>
#include <list>
#include <deque>
#include <set>
#include <map>
#include <array>
#include <unordered_set>
#include <unordered_map>
Go to the source code of this file.
Functions | |
template<class T > | |
std::ostream & | myra_stlprint::operator<< (std::ostream &out, const std::vector< T > &v) |
Prints a std::vector<T> | |
template<class T > | |
std::ostream & | myra_stlprint::operator<< (std::ostream &out, const std::list< T > &l) |
Prints a std::list<T> | |
template<class T > | |
std::ostream & | myra_stlprint::operator<< (std::ostream &out, const std::deque< T > &v) |
Prints a std::deque<T> | |
template<class First , class Second > | |
std::ostream & | myra_stlprint::operator<< (std::ostream &out, const std::pair< First, Second > &p) |
Prints a std::pair<F,S> | |
template<class T , class Comparator > | |
std::ostream & | myra_stlprint::operator<< (std::ostream &out, const std::set< T, Comparator > &s) |
Prints a std::set<T> | |
template<class T , class Comparator > | |
std::ostream & | myra_stlprint::operator<< (std::ostream &out, const std::multiset< T, Comparator > &s) |
Prints a std::multiset<T> | |
template<class Key , class Value , class Comparator > | |
std::ostream & | myra_stlprint::operator<< (std::ostream &out, const std::map< Key, Value, Comparator > &m) |
Prints a std::map<K,V> | |
template<class Key , class Value , class Comparator > | |
std::ostream & | myra_stlprint::operator<< (std::ostream &out, const std::multimap< Key, Value, Comparator > &m) |
Prints a std::multimap<K,V> | |
template<class T , size_t N> | |
std::ostream & | myra_stlprint::operator<< (std::ostream &out, const std::array< T, N > &a) |
Prints a std::array<T,N> | |
template<class Key , class Value > | |
std::ostream & | myra_stlprint::operator<< (std::ostream &out, const std::unordered_multimap< Key, Value > &m) |
Prints a std::unordered_multimap<K,V> | |
template<class T > | |
std::ostream & | myra_stlprint::operator<< (std::ostream &out, const std::unordered_set< T > &s) |
Prints a std::unordered_set<T> | |
template<class Key , class Value > | |
std::ostream & | myra_stlprint::operator<< (std::ostream &out, const std::unordered_map< Key, Value > &m) |
Prints a std::unordered_map<K,V> | |
template<class T > | |
std::string | myra_stlprint::stream2string (const T &t) |
Uses a std::stringstream to serialize a T into a std::string, note T must have a "std::ostream << t" operator. | |
Routines for printing the contents of various std::container's to a std::ostream using operator <<.