-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
33 lines (24 loc) · 767 Bytes
/
main.cpp
File metadata and controls
33 lines (24 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include "Demangle.h"
#include <cstdint>
#include <print>
#include <string>
#include <type_traits>
auto main() -> int
{
using Demangler::demangle;
auto name = demangle<std::common_type_t<std::int16_t, std::int32_t>>();
std::println("Commontype<int16, int32> = {}", name);
name = demangle<int&>();
std::println("int& = {}", name);
name = demangle<int*>();
std::println("int* = {}", name);
name = demangle<int* const>();
std::println("int* const = {}", name);
name = demangle<const int&>();
std::println("const int& = {}", name);
name = demangle<const int* const>();
std::println("const int* const = {}", name);
name = demangle<std::string>();
std::println("std::string = {}", name);
return 0;
}