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
16
17namespace 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
Definition frontList.hpp:13
constexpr auto front(const std::tuple< Elements... > &tuple)
Definition front.hpp:24