MCPcopy Create free account
hub / github.com/0voice/cpp_new_features / main

Function main

cpp_20/010_concepts_destructible.cpp:11–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9 ~Bar() = default;
10};
11int main() {
12 std::cout << std::boolalpha
13 << "std::string is destructible? "
14 << std::is_destructible<std::string>::value << '\n'
15 << "Foo is trivially destructible? "
16 << std::is_trivially_destructible_v<Foo> << '\n'
17 << "Foo is nothrow destructible? "
18 << std::is_nothrow_destructible<Foo>() << '\n'
19 << "Bar is trivially destructible? "
20 << std::is_trivially_destructible<Bar>{} << '\n';
21}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected