repr
0.1
Reconstructable string representations and more
Loading...
Searching...
No Matches
fallback.h
Go to the documentation of this file.
1
#pragma once
2
#include <
string
>
3
#include <
librepr/macro/format.h
>
4
5
namespace
librepr
{
6
7
template
<
typename
T>
8
std::string
repr
(T
const
&
obj
){
9
// Fallback for when we couldn't find a suitable repr
10
return
REPR_FORMAT
(
" object at {:p}"
,
static_cast<
void
const
*
>
(&
obj
));
11
}
12
13
}
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
repr
constexpr ::librepr::ReprWrapper repr
Definition
repr:59
string
include
librepr
repr
fallback.h
Generated by
1.9.8, using the excellent
Doxygen Awesome
Theme