Class documentation of Concepts

Loading...
Searching...
No Matches
output.hh
Go to the documentation of this file.
1
6#ifndef Output_hh
7#define Output_hh
8
9#include <fstream>
10#include <typeinfo>
11
12namespace concepts {
13
14 // *********************************************************** ensureEnding **
15
20 std::string ensureEnding(const std::string& filename,
21 const std::string ending);
22
34 std::string demangle(const char* name);
35
42 template <class T>
43 std::string typeOf(const T& t) {
44
45 return demangle(typeid(t).name());
46 }
47
55 template<class TagT>
57 static const std::string name() {
58 return demangle(typeid(TagT()).name());
59 }
60 };
61
62} // namespace concepts
63
64#endif // Output_hh
std::string typeOf(const T &t)
Definition output.hh:43
std::string demangle(const char *name)
Set< F > makeSet(uint n, const F &first,...)
Definition set.hh:320
std::string ensureEnding(const std::string &filename, const std::string ending)