alpaqa
1.0.0a18
Nonconvex constrained optimization
Loading...
Searching...
No Matches
src
alpaqa
src
util
demangled-typename.cpp
Go to the documentation of this file.
1
#include <
alpaqa/util/demangled-typename.hpp
>
2
#include <cstdlib>
3
#include <memory>
4
#ifdef __GNUC__
5
#include <cxxabi.h>
6
#endif
7
8
std::string
demangled_typename
(
const
std::type_info &t) {
9
#ifdef __GNUC__
10
return
std::unique_ptr<char,
decltype
(&std::free)>{
11
abi::__cxa_demangle(t.name(),
nullptr
,
nullptr
,
nullptr
), std::free}
12
.get();
13
#else
14
return
t.name();
15
#endif
16
}
demangled_typename
std::string demangled_typename(const std::type_info &t)
Get the pretty name of the given type as a string.
Definition
demangled-typename.cpp:8
demangled-typename.hpp
Generated on Wed Mar 27 2024 for alpaqa by
1.9.8