This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef cxx20 | |
#include <concepts> | |
template <typename Functor> | |
requires requires (Functor f) | |
{ | |
{ f() } -> std::same_as<void>; | |
} | |
constexpr void const_eval(Functor f) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <memory> // for sparse array | |
#include <string> // string manipulation | |
#include <vector> // for dense array | |
////////////////////////// | |
// SPARSE SET // | |
// time complexity // | |
// of operations // | |
//----------------------// | |
// insert -- O(1) // |