-
Notifications
You must be signed in to change notification settings - Fork 59
/
main.cpp
33 lines (28 loc) · 908 Bytes
/
main.cpp
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 <UDRefl/UDRefl.hpp>
#include <iostream>
#include <cmath>
using namespace Ubpa;
using namespace Ubpa::UDRefl;
int main() {
std::cout
<< "//" << std::endl
<< "// std::string" << std::endl
<< "////////////////" << std::endl;
for (auto&& [name, info] : MethodRange_of<std::string>)
std::cout << name.GetView() << std::endl;
std::cout
<< "//" << std::endl
<< "// std::string_view" << std::endl
<< "/////////////////////" << std::endl;
for (auto&& [name, info] : MethodRange_of<std::string_view>)
std::cout << name.GetView() << std::endl;
std::cout
<< "//" << std::endl
<< "// const char*" << std::endl
<< "/////////////////////" << std::endl;
for (auto&& [name, info] : MethodRange_of<const char*>)
std::cout << name.GetView() << std::endl;
auto str = Mngr.MakeShared(Type_of<std::string>, TempArgsView{ "hello world" });
std::cout << str << std::endl;
return 0;
}