/
GraphTreeHeap
/
museumdb2
Обзор
Документация
Войти
/
GraphTreeHeap
/
museumdb2
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
util/overload.h
23 строки
711 B
Levi Tamasi
Fix copyright header in util/overload.h (#11826)
13 сен 2023, 19:50
13 сен 2023, 19:50
3db2cf1
Код
Авторство
О чём код?
// Copyright (c) Meta Platforms, Inc. and affiliates. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). #pragma once #include "rocksdb/rocksdb_namespace.h" namespace ROCKSDB_NAMESPACE { // A helper template that can combine multiple functors into a single one to be // used with std::visit for example. It also works with lambdas, since it // comes with an explicit deduction guide. template <typename... Ts> struct overload : Ts... { using Ts::operator()...; }; template <typename... Ts> overload(Ts...) -> overload<Ts...>; } // namespace ROCKSDB_NAMESPACE