MCPcopy Create free account
hub / github.com/andreasfertig/programming-with-cpp20 / main

Function main

01.28-optional3/main.cpp:58–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56static_assert(std::is_trivially_destructible_v<storage_t<int>>);
57
58int main()
59{
60 static_assert(
61 not std::is_copy_constructible_v<optional<NotCopyable>>);
62 static_assert(std::is_copy_constructible_v<optional<int>>);
63
64 static_assert(not std::is_trivially_destructible_v<
65 optional<Not_TriviallyDestructible>>);
66 static_assert(
67 std::is_trivially_destructible_v<optional<int>>);
68}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected