Kaspersky Neuromorphic Platform
1.0.0
API Reference
|
Some useful routines for working with std::variant
.
More...
#include <string>
#include <variant>
#include <vector>
#include <boost/mp11.hpp>
Go to the source code of this file.
Classes | |
struct | knp::meta::variant_cast_proxy< FromArgs > |
Convert from one set of arguments to another. More... | |
Namespaces | |
namespace | knp |
General framework namespace. | |
namespace | knp::meta |
Metaprogramming library namespace. | |
Functions | |
template<typename SupportedTypes , typename AllVariants , typename ToContainer > | |
void | knp::meta::load_from_container (const std::vector< AllVariants > &from_container, ToContainer &to_container) |
Load elements from one container of all variants to another container that contains a subset of all variants. | |
Some useful routines for working with std::variant
.
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
http://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.
Definition in file variant_helpers.h.