MCPcopy Create free account
hub / github.com/Naios/function2 / config

Class config

include/function2/function2.hpp:182–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180/// Configuration trait to configure the function_base class.
181template <bool Owning, bool Copyable, typename Capacity>
182struct config {
183 // Is true if the function is owning.
184 static constexpr auto const is_owning = Owning;
185
186 // Is true if the function is copyable.
187 static constexpr auto const is_copyable = Copyable;
188
189 // The internal capacity of the function
190 // used in small functor optimization.
191 // The object shall expose the real capacity through Capacity::capacity
192 // and the intended alignment through Capacity::alignment.
193 using capacity = Capacity;
194};
195
196/// A config which isn't compatible to other configs
197template <bool Throws, bool HasStrongExceptGuarantee, typename... Args>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected