Graphle 1.0.0
A C++20 header-only graph library
Loading...
Searching...
No Matches
Public Types | List of all members
graphle::store::default_storage_provider< ST, Overload, Args > Struct Template Reference

#include <default_storage_provider.hpp>

Public Types

using not_specialized_tag = void
 

Detailed Description

template<storage_type ST, overload_mode Overload, typename... Args>
struct graphle::store::default_storage_provider< ST, Overload, Args >

The default storage provider is used to provide storage required for graph algorithms when no storage provider is given by the user. It should return an instance (by value or by reference) of a valid storage object for the given storage type when invoked.

Users may change the default storage provider for a given storage type by specializing the template with Overload = overload_mode::USER_PROVIDED. This is useful e.g. if your project uses a specific container type (e.g. Abseil's or Boost's unordered map instead of the default one), and you wish to replace the storage used by graphle with that type globally. It is also possible to just provide a storage provider to the algorithm that needs it to control the storage on a case-by-case basis.

Template Parameters
STThe storage type that must be provided.
OverloadAllows users to specialize this template.
ArgsTemplate arguments for the provided storage object (E.g. key and value types for a map storage provider).

Definition at line 34 of file default_storage_provider.hpp.

Member Typedef Documentation

◆ not_specialized_tag

template<storage_type ST, overload_mode Overload, typename... Args>
using graphle::store::default_storage_provider< ST, Overload, Args >::not_specialized_tag = void

Definition at line 35 of file default_storage_provider.hpp.


The documentation for this struct was generated from the following file: