11 #ifndef INLCUDE_MOLASSEMBLER_TEMPLE_CONSTEXPR_TO_STL_H
12 #define INLCUDE_MOLASSEMBLER_TEMPLE_CONSTEXPR_TO_STL_H
22 namespace Molassembler {
26 template<
typename T,
size_t size>
32 template<
typename T,
size_t size>
35 data.reserve(dynamicArray.size());
37 for(
unsigned i = 0; i < dynamicArray.size(); ++i) {
38 data.push_back(dynamicArray.at(i));
45 template<
typename T,
size_t size>
47 std::set<T> returnSet;
49 for(
const auto&
element : dynamicSet) {
std::array< T, size > toSTL(const Array< T, size > &array)
Converts an Array into a std::array.
Definition: ToStl.h:27
double element(const PositionCollection &normalizedPositions, const Elements::Rotation &rotation)
Returns the CSM for a Rotation symmetry element along the rotation axis without optimizing the coordi...
Definition: DynamicArray.h:26
Tree-based set.
Definition: DynamicSet.h:34
A std::map-like class based on BTree (but max size is space allocated)
constexpr std::array< T, nItems > getArray() const
Explicit conversion to a std::array.
Definition: Array.h:490