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
>
3
#include <
librepr/macro/format.h
>
4
5
6
namespace
librepr
{
7
inline
std::string
repr
(
std::nullptr_t
) {
8
return
"nullptr"
;
9
}
10
11
inline
std::string
repr
(
char
const
*
obj
) {
12
return
REPR_FORMAT
(
"\"{}\""
,
obj
);
13
}
14
15
inline
std::string
repr
(
void
const
*
obj
){
16
return
REPR_FORMAT
(
"{}"
,
obj
);
17
}
18
19
}
// namespace librepr
REPR_FORMAT
#define REPR_FORMAT(...)
std::string
format.h
librepr
Definition
ctvi/ctvi.h:9
librepr::code_for
std::string code_for()
Definition
repr:39
std::nullptr_t
repr
constexpr ::librepr::ReprWrapper repr
Definition
repr:59
string
include
librepr
repr
pointer.h
Generated by
1.9.8, using the excellent
Doxygen Awesome
Theme