sparrow 0.3.0
Loading...
Searching...
No Matches
non_owning_dynamic_bitset.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 implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#pragma once
16
19
20namespace sparrow
21{
22 template <std::integral T>
24 {
25 public:
26
32
34
35 constexpr ~non_owning_dynamic_bitset() = default;
38
39 constexpr non_owning_dynamic_bitset& operator=(const non_owning_dynamic_bitset&) = default;
40 constexpr non_owning_dynamic_bitset& operator=(non_owning_dynamic_bitset&&) noexcept = default;
41
42 using base_type::clear;
43 using base_type::emplace;
44 using base_type::erase;
45 using base_type::insert;
46 using base_type::pop_back;
47 using base_type::push_back;
48 using base_type::resize;
49 };
50
51 template <std::integral T>
56
57}
typename storage_type_without_cvrefpointer::value_type block_type
typename storage_type_without_cvrefpointer::size_type size_type
constexpr const storage_type_without_cvrefpointer & buffer() const noexcept
constexpr dynamic_bitset_base(storage_type buffer, size_type size)
dynamic_bitset_base< buffer< T > * > base_type
constexpr void push_back(value_type value)
constexpr non_owning_dynamic_bitset(const non_owning_dynamic_bitset &)=default
constexpr non_owning_dynamic_bitset(non_owning_dynamic_bitset &&) noexcept=default
typename base_type::storage_type storage_type
constexpr iterator erase(const_iterator pos)
constexpr ~non_owning_dynamic_bitset()=default
constexpr void resize(size_type n, value_type b=false)
constexpr void clear() noexcept
typename base_type::block_type block_type
constexpr iterator insert(const_iterator pos, value_type value)
typename base_type::value_type value_type
constexpr non_owning_dynamic_bitset(buffer< T > *buffer, size_type n)
constexpr iterator emplace(const_iterator pos, value_type value)