Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
schema_name.hpp File Reference
#include "barretenberg/ecc/curves/bn254/g1.hpp"
#include <cxxabi.h>
#include <string>

Go to the source code of this file.

Functions

template<typename T >
std::string msgpack_schema_name (T const &)
 

Function Documentation

◆ msgpack_schema_name()

template<typename T >
std::string msgpack_schema_name ( T const &  )

Converts C++ type information into a human-readable format. This function leverages __cxa_demangle to demangle the name generated by typeid. Special cases are handled for "basic_string" (returns "string") and "i" (returns "int"). Template specializations are truncated and only the base type name is returned

Template Parameters
Tthe type.
Returns
the readable schema name.

Definition at line 14 of file schema_name.hpp.