4#ifndef _Stroika_Foundation_Containers_Concrete_SortedSet_Factory_h_
5#define _Stroika_Foundation_Containers_Concrete_SortedSet_Factory_h_
7#include "Stroika/Foundation/StroikaPreComp.h"
18namespace Stroika::Foundation::Containers::Factory {
20 using Common::ITotallyOrderingComparer;
29 template <
typename T, ITotallyOrderingComparer<T> COMPARER = less<T>>
32 static_assert (not is_reference_v<T> and not is_reference_v<COMPARER>,
33 "typically if this fails its because a (possibly indirect) caller forgot to use forward<TTT>(), or remove_cvref_t");
99 static void Register (
const optional<SortedSet_Factory>& f = nullopt);
116#include "SortedSet_Factory.inl"
Singleton factory object - Used to create the default backend implementation of a SortedSet<> contain...
function< ConstructedType(const COMPARER &comparer)> FactoryFunctionType
nonvirtual ConstructedType operator()(const COMPARER &comparer={}) const
constexpr SortedSet_Factory()
static void Register(const optional< SortedSet_Factory > &f=nullopt)
static const SortedSet_Factory & Default()
SortedSet< T > ConstructedType