Loading...
Searching...
No Matches
transforms.h File Reference

Transforms between standard container types. More...

#include <set>
#include <utility>
#include <vector>
Include dependency graph for transforms.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename T>
std::vector< T > fcpp::transforms::to_vector (const std::set< T > &items)
 Transform a set to a vector using copy semantics.
template<typename T>
std::vector< T > fcpp::transforms::to_vector (std::set< T > &&items)
 Transform a set to a vector using move semantics.

Detailed Description

Transforms between standard container types.

Author
Andrew Walsh (awals.nosp@m.h128.nosp@m.@gmai.nosp@m.l.co.nosp@m.m)
Version
0.2
Date
2026-10-21

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Function Documentation

◆ to_vector() [1/2]

template<typename T>
std::vector< T > fcpp::transforms::to_vector ( const std::set< T > & items)

Transform a set to a vector using copy semantics.

Template Parameters
TType of items in the set to copy.
Parameters
itemsSet of items to transform.
Returns
std::vector<T> Transformed vector of items.

◆ to_vector() [2/2]

template<typename T>
std::vector< T > fcpp::transforms::to_vector ( std::set< T > && items)

Transform a set to a vector using move semantics.

Template Parameters
TType of items in the set to move.
Parameters
itemsSet of items to transform.
Returns
std::vector<T> Transformed vector of moved items.