DryChem
1.0.0
A generic, compile-time C++ toolbox with no dependencies for the modern computational chemistry project.
Loading...
Searching...
No Matches
front.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: front.hpp
5
// Author: crdrisko
6
// Date: 01/21/2021-09:09:40
7
// Description:
8
9
#ifndef FRONT_HPP
10
#define FRONT_HPP
11
12
#include <tuple>
13
#include <utility>
14
15
#include "
common-utils/meta/types/tuples/tupleAlgorithms/select.hpp
"
16
17
namespace
CppUtils::Meta
18
{
23
template
<
typename
... Elements>
24
constexpr
auto
front
(
const
std::tuple<Elements...>& tuple)
25
{
26
return
std::get<0>(tuple);
27
}
28
}
// namespace CppUtils::Meta
29
30
#endif
CppUtils::Meta
Definition
frontList.hpp:13
CppUtils::Meta::front
constexpr auto front(const std::tuple< Elements... > &tuple)
Definition
front.hpp:24
select.hpp
common-utilities
include
common-utils
meta
types
tuples
tupleAlgorithms
front.hpp
Generated on Thu Feb 13 2025 11:55:13 for DryChem by
1.13.2