/usr/include/boost/hana/functional
NameSizeModeActions
always.hpp17900644editdlrm
apply.hpp29400644editdlrm
arg.hpp51160644editdlrm
capture.hpp34980644editdlrm
compose.hpp33930644editdlrm
curry.hpp57160644editdlrm
demux.hpp95500644editdlrm
fix.hpp27580644editdlrm
flip.hpp20710644editdlrm
id.hpp9050644editdlrm
infix.hpp64620644editdlrm
iterate.hpp62540644editdlrm
lockstep.hpp36100644editdlrm
on.hpp22910644editdlrm
overload.hpp26810644editdlrm
overload_linearly.hpp37070644editdlrm
partial.hpp32370644editdlrm
placeholder.hpp129850644editdlrm
reverse_partial.hpp32690644editdlrm
Edit: /usr/include/boost/hana/functional/id.hpp (905B)
/*! @file Defines `boost::hana::id`. @copyright Louis Dionne 2013-2017 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ #ifndef BOOST_HANA_FUNCTIONAL_ID_HPP #define BOOST_HANA_FUNCTIONAL_ID_HPP #include BOOST_HANA_NAMESPACE_BEGIN //! @ingroup group-functional //! The identity function -- returns its argument unchanged. //! //! ### Example //! @include example/functional/id.cpp #ifdef BOOST_HANA_DOXYGEN_INVOKED constexpr auto id = [](auto&& x) -> decltype(auto) { return forwarded(x); }; #else struct id_t { template constexpr T operator()(T&& t) const { return static_cast(t); } }; constexpr id_t id{}; #endif BOOST_HANA_NAMESPACE_END #endif // !BOOST_HANA_FUNCTIONAL_ID_HPP