DryChem
1.0.0
A generic, compile-time C++ toolbox with no dependencies for the modern computational chemistry project.
Loading...
Searching...
No Matches
popFront.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: popFront.hpp
5
// Author: crdrisko
6
// Date: 01/21/2021-09:10:15
7
// Description:
8
9
#ifndef POPFRONT_HPP
10
#define POPFRONT_HPP
11
12
#include <tuple>
13
#include <utility>
14
15
#include "
common-utils/meta/algorithms/basicAlgorithms/popFrontList.hpp
"
16
#include "
common-utils/meta/types/tuples/tupleAlgorithms/select.hpp
"
17
18
namespace
CppUtils::Meta
19
{
20
template
<
typename
... Elements>
21
constexpr
auto
pop_front
(
const
std::tuple<Elements...>& tuple)
22
{
23
return
select
(tuple,
pop_front_list_t
<std::make_index_sequence<
sizeof
...(Elements)>> {});
24
}
25
}
// namespace CppUtils::Meta
26
27
#endif
CppUtils::Meta
Definition
frontList.hpp:13
CppUtils::Meta::select
constexpr auto select(const std::tuple< Elements... > &tuple, std::index_sequence< Indices... >)
Definition
select.hpp:27
CppUtils::Meta::pop_front_list_t
typename pop_front_list< List >::type pop_front_list_t
Convenience variable template for ease-of-use.
Definition
popFrontList.hpp:25
CppUtils::Meta::pop_front
constexpr auto pop_front(const std::tuple< Elements... > &tuple)
Definition
popFront.hpp:21
popFrontList.hpp
select.hpp
common-utilities
include
common-utils
meta
types
tuples
tupleAlgorithms
popFront.hpp
Generated on Thu Feb 13 2025 11:55:13 for DryChem by
1.13.2