emlabcpp
modern opinionated embedded C++ library
|
MIT License. More...
Classes | |
struct | map_f_collector |
struct | map_f_collector< T > |
struct | map_f_collector< std::array< T, N > > |
struct | is_view |
struct | is_view< T > |
struct | is_std_tuple |
struct | is_std_tuple< std::tuple< T... > > |
struct | is_std_array |
struct | is_std_array< std::array< T, N > > |
struct | is_std_vector |
struct | is_std_vector< std::vector< T > > |
struct | static_size |
struct | static_size< std::array< T, N > > |
struct | static_size< std::tuple< Ts... > > |
struct | is_view< view< Iter > > |
Support for our deduction guide to types - is_view_v. More... | |
Functions | |
template<typename... Args, typename UnaryPredicate , std::size_t... Idx> | |
constexpr std::size_t | find_if_impl (std::tuple< Args... > const &t, UnaryPredicate &&f, std::index_sequence< Idx... >) |
template<typename T , std::size_t N, range_container Container, typename UnaryCallable , std::size_t... Is> | |
std::array< T, N > | map_f_to_a_impl (Container &&cont, UnaryCallable &&f, std::integer_sequence< std::size_t, Is... >) |
template<typename T , std::size_t N, gettable_container Container, typename UnaryCallable , std::size_t... Is> | |
requires (!range_container< Container >) std | |
template<typename T > | |
requires | requires (T a, typename T::value_type b) |
template<std::size_t I, typename T > | |
constexpr auto | get_ith_item_from_arrays (T &arr, auto &... arrays) |
template<std::size_t Off, std::size_t N, typename F > | |
constexpr decltype(auto) | index_switch (std::size_t i, F &&f) |
Executes f<i> if provided i matches. More... | |
template<std::size_t Off, std::size_t N, typename F > | |
constexpr void | index_seq (F &&f) |
Executes f<i> for i going from Off to N. More... | |
template<std::size_t Off, std::size_t N, typename F > | |
constexpr bool | index_until (F &&f) |
Executes f<i> until some is true. More... | |
Variables | |
template<typename T > | |
concept | map_f_collectable |
MIT License.
Copyright (c) 2025 Jan Veverak Koniarik
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
is_view<T>::value marks whenever is some type of temporary view - not owning of the data
is_std_tuple<T>::value is true if type T is std::tuple
is_std_array<T>::value is true if type T is std::array
is_std_vector<T>::value is true if type T is std::vector
static_size<T>::value is size of the type T, if it has any deducable at compile time
struct emlabcpp::impl::map_f_collector |
struct emlabcpp::impl::static_size |
|
constexpr |
References emlabcpp::f, and emlabcpp::res.
|
constexpr |
|
constexpr |
Executes f<i>
for i going from Off to N.
References EMLABCPP_INDEX_EXPAND, EMLABCPP_INDEX_MAX, EMLABCPP_INDEX_SEQ, emlabcpp::f, and emlabcpp::N.
|
constexpr |
Executes f<i>
if provided i
matches.
References EMLABCPP_INDEX_EXPAND, EMLABCPP_INDEX_MAX, EMLABCPP_INDEX_SWITCH_CASE, emlabcpp::f, and emlabcpp::N.
|
constexpr |
Executes f<i>
until some is true.
References EMLABCPP_INDEX_EXPAND, EMLABCPP_INDEX_MAX, EMLABCPP_INDEX_UNTIL, emlabcpp::f, and emlabcpp::N.
std::array< T, N > emlabcpp::impl::map_f_to_a_impl | ( | Container && | cont, |
UnaryCallable && | f, | ||
std::integer_sequence< std::size_t, Is... > | |||
) |
https://en.cppreference.com/w/cpp/language/eval_order based on standard the order of process(i) calls is defined only in case we are using constructor initializer with {} brackets. Otherwise it can be any order ...
References emlabcpp::f.
emlabcpp::impl::requires | ( | !range_container< Container > | ) |
viz. second map_f_to_a_impl
References emlabcpp::f.
requires emlabcpp::impl::requires | ( | T | a, |
typename T::value_type | b | ||
) |
concept emlabcpp::impl::map_f_collectable |