MCPcopy Create free account
hub / github.com/bitwizeshift/result / explicit_type

Class explicit_type

test/src/failure.test.cpp:68–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66
67template <typename T>
68struct explicit_type : public T
69{
70 template <typename...Args,
71 typename = typename std::enable_if<std::is_constructible<T,Args...>::value>::type>
72 explicit explicit_type(Args&&...args)
73 : T(std::forward<Args>(args)...)
74 {
75 }
76
77 explicit explicit_type() = default;
78 explicit explicit_type(const explicit_type&) = default;
79 explicit explicit_type(explicit_type&&) = default;
80
81 auto operator=(const explicit_type&) -> explicit_type& = default;
82 auto operator=(explicit_type&&) -> explicit_type& = default;
83};
84
85template <typename T>
86struct move_only : public T

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected