DryChem 1.0.0
A generic, compile-time C++ toolbox with no dependencies for the modern computational chemistry project.
Loading...
Searching...
No Matches
isEmpty.hpp
Go to the documentation of this file.
1// Copyright (c) 2020-2025 Cody R. Drisko. All rights reserved.
2// Licensed under the MIT License. See the LICENSE file in the project root for more information.
3//
4// Name: isEmpty.hpp
5// Author: crdrisko
6// Date: 01/21/2021-09:09:49
7// Description:
8
9#ifndef ISEMPTY_HPP
10#define ISEMPTY_HPP
11
12#include <tuple>
13#include <utility>
14
16
17namespace CppUtils::Meta
18{
22 template<typename... Elements>
23 constexpr bool is_empty(const std::tuple<Elements...>&)
24 {
25 return is_empty_list_v<std::make_index_sequence<sizeof...(Elements)>>;
26 }
27} // namespace CppUtils::Meta
28
29#endif
Definition frontList.hpp:13
constexpr bool is_empty_list_v
Convenience variable template for ease-of-use.
Definition isEmptyList.hpp:29
constexpr bool is_empty(const std::tuple< Elements... > &)
Definition isEmpty.hpp:23