MCPcopy Create free account
hub / github.com/apache/arrow / nameof

Function nameof

r/src/nameof.h:81–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79
80template <typename T>
81std::string nameof(bool strip_namespace = false) {
82 std::string name{detail::typename_begin<T>(), detail::typename_length<T>()};
83 if (strip_namespace) {
84 auto i = name.find_last_of("::");
85 if (i != std::string::npos) {
86 name = name.substr(i + 1);
87 }
88 }
89 return name;
90}
91
92} // namespace util
93} // namespace arrow

Callers

nothing calls this directly

Calls 1

substrMethod · 0.80

Tested by

no test coverage detected