![]() |
fluentcpp 0.2
|
Transforms between standard container types. More...
#include <set>#include <utility>#include <vector>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. | |
Transforms between standard container types.
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.
| std::vector< T > fcpp::transforms::to_vector | ( | const std::set< T > & | items | ) |
Transform a set to a vector using copy semantics.
| T | Type of items in the set to copy. |
| items | Set of items to transform. |
| std::vector< T > fcpp::transforms::to_vector | ( | std::set< T > && | items | ) |
Transform a set to a vector using move semantics.
| T | Type of items in the set to move. |
| items | Set of items to transform. |