Sequoia
Loading...
Searching...
No Matches
StaticLinearlyPartitionedSequence.hpp
Go to the documentation of this file.
1
2// Copyright Oliver J. Rosten 2018. //
3// Distributed under the GNU GENERAL PUBLIC LICENSE, Version 3.0. //
4// (See accompanying file LICENSE.md or copy at //
5// https://www.gnu.org/licenses/gpl-3.0.en.html) //
7
8#pragma once
9
16
17namespace sequoia::data_structures
18{
19 template<std::integral IndexType, std::size_t Npartitions, std::size_t NelementsPerPartition>
20 struct static_partitions_maker<maths::static_linear_sequence<IndexType, NelementsPerPartition, NelementsPerPartition, Npartitions, IndexType>>
21 {
23
24 template<class T>
25 constexpr static partitions_type make_partitions(std::initializer_list<std::initializer_list<T>>)
26 {
27 return {};
28 }
29 };
30
31 template<class T, std::size_t Npartitions, std::size_t NelementsPerPartition, std::integral IndexType=std::size_t>
33}
Classes implementing the concept of a linear sequence.
Classes implementing the concept of a sequence of data which is divided into partitions.
Definition: PartitionedData.hpp:1099
Definition: PartitionedData.hpp:1054
Definition: LinearSequence.hpp:49