Utilities
Loading...
Searching...
No Matches
std_lib_facilities.h File Reference
#include <iostream>
#include <iomanip>
#include <fstream>
#include <sstream>
#include <cmath>
#include <cstdlib>
#include <string>
#include <list>
#include <forward_list>
#include <vector>
#include <unordered_map>
#include <algorithm>
#include <array>
#include <regex>
#include <random>
#include <stdexcept>
Include dependency graph for std_lib_facilities.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Range_error
 
struct  Vector< T >
 
struct  String
 
struct  std::hash< String >
 
struct  Exit
 

Namespaces

namespace  std
 

Macros

#define H112   080315L
 
#define vector   Vector
 

Typedefs

typedef long Unicode
 
template<typename C >
using Value_type = typename C::value_type
 
template<typename C >
using Iterator = typename C::iterator
 

Functions

template<class T >
string to_string (const T &t)
 
void error (const string &s)
 
void error (const string &s, const string &s2)
 
void error (const string &s, int i)
 
template<class T >
charas_bytes (T &i)
 
void keep_window_open ()
 
void keep_window_open (string s)
 
void simple_error (string s)
 
template<class R , class A >
R narrow_cast (const A &a)
 
default_random_engineget_rand ()
 
void seed_randint (int s)
 
int randint (int min, int max)
 
int randint (int max)
 
template<typename C >
void sort (C &c)
 
template<typename C , typename Pred >
void sort (C &c, Pred p)
 
template<typename C , typename Val >
Iterator< Cfind (C &c, Val v)
 
template<typename C , typename Pred >
Iterator< Cfind_if (C &c, Pred p)
 

Macro Definition Documentation

◆ H112

#define H112   080315L

Definition at line 27 of file std_lib_facilities.h.

◆ vector

#define vector   Vector

Definition at line 97 of file std_lib_facilities.h.

Typedef Documentation

◆ Iterator

Definition at line 230 of file std_lib_facilities.h.

◆ Unicode

Definition at line 50 of file std_lib_facilities.h.

◆ Value_type

Definition at line 227 of file std_lib_facilities.h.

Function Documentation

◆ as_bytes()

template<class T >
char * as_bytes ( T i)

Definition at line 154 of file std_lib_facilities.h.

◆ error() [1/3]

void error ( const string &  s)
inline

Definition at line 136 of file std_lib_facilities.h.

Here is the caller graph for this function:

◆ error() [2/3]

void error ( const string &  s,
const string &  s2 
)
inline

Definition at line 141 of file std_lib_facilities.h.

Here is the call graph for this function:

◆ error() [3/3]

void error ( const string &  s,
int  i 
)
inline

Definition at line 146 of file std_lib_facilities.h.

Here is the call graph for this function:

◆ find()

template<typename C , typename Val >
Iterator< C > find ( C c,
Val  v 
)

Definition at line 248 of file std_lib_facilities.h.

◆ find_if()

template<typename C , typename Pred >
Iterator< C > find_if ( C c,
Pred  p 
)

Definition at line 255 of file std_lib_facilities.h.

◆ get_rand()

default_random_engine & get_rand ( )
inline

Definition at line 210 of file std_lib_facilities.h.

Here is the caller graph for this function:

◆ keep_window_open() [1/2]

void keep_window_open ( )
inline

Definition at line 162 of file std_lib_facilities.h.

Here is the caller graph for this function:

◆ keep_window_open() [2/2]

void keep_window_open ( string  s)
inline

Definition at line 171 of file std_lib_facilities.h.

◆ narrow_cast()

template<class R , class A >
R narrow_cast ( const A a)

Definition at line 201 of file std_lib_facilities.h.

Here is the call graph for this function:

◆ randint() [1/2]

int randint ( int  max)
inline

Definition at line 220 of file std_lib_facilities.h.

Here is the call graph for this function:

◆ randint() [2/2]

int randint ( int  min,
int  max 
)
inline

Definition at line 218 of file std_lib_facilities.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ seed_randint()

void seed_randint ( int  s)
inline

Definition at line 216 of file std_lib_facilities.h.

Here is the call graph for this function:

◆ simple_error()

void simple_error ( string  s)
inline

Definition at line 188 of file std_lib_facilities.h.

Here is the call graph for this function:

◆ sort() [1/2]

template<typename C >
void sort ( C c)

Definition at line 234 of file std_lib_facilities.h.

◆ sort() [2/2]

template<typename C , typename Pred >
void sort ( C c,
Pred  p 
)

Definition at line 241 of file std_lib_facilities.h.

◆ to_string()

template<class T >
string to_string ( const T t)

Definition at line 56 of file std_lib_facilities.h.