sparrow 0.3.0
Loading...
Searching...
No Matches
array_helper.hpp
Go to the documentation of this file.
1// Copyright 2024 Man Group Operations Limited
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or mplied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#pragma once
16
19
20// File containing helper functions to avoid bloating the
21// include chain.
22
23namespace sparrow
24{
25 [[nodiscard]] SPARROW_API std::size_t array_size(const array_wrapper& ar);
26
27 [[nodiscard]] SPARROW_API bool array_has_value(const array_wrapper& ar, std::size_t index);
28
30 array_element(const array_wrapper& ar, std::size_t index);
31
34}
Base class for array type erasure.
#define SPARROW_API
Definition config.hpp:38
SPARROW_API std::size_t array_size(const array_wrapper &ar)
SPARROW_API array_traits::inner_value_type array_default_element_value(const array_wrapper &ar)
SPARROW_API bool array_has_value(const array_wrapper &ar, std::size_t index)
SPARROW_API array_traits::const_reference array_element(const array_wrapper &ar, std::size_t index)
mpl::rename< mpl::transform< detail::array_const_reference_t, all_base_types_t >, nullable_variant > const_reference
mpl::rename< all_base_types_t, std::variant > inner_value_type