repr 0.1
Reconstructable string representations and more
Loading...
Searching...
No Matches
pointer.h
Go to the documentation of this file.
1#pragma once
2#include <string>
4
5
6namespace librepr {
8 return "nullptr";
9}
10
11inline std::string repr(char const* obj) {
12 return REPR_FORMAT("\"{}\"", obj);
13}
14
15inline std::string repr(void const* obj){
16 return REPR_FORMAT("{}", obj);
17}
18
19} // namespace librepr
#define REPR_FORMAT(...)
Definition ctvi/ctvi.h:9
std::string code_for()
Definition repr:39
constexpr ::librepr::ReprWrapper repr
Definition repr:59