Support Class Library
A set of tools providing classes and utility
any.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <scl/utils/Any.h>
4 #include <utility>
5 
6 namespace scl{
7  namespace tools{
8  namespace make{
16  template <class T, class... Args>
17  scl::utils::Any any(Args&&... args){
18  return scl::utils::Any(
19  T{std::forward<Args>(args)...}
20  );
21  }
22  }
23  }
24 }
Global namespace of the SCL.
Definition: alias.hpp:3
Group of factory functions.
Definition: any.h:8
Class that can hold any value type (and change value type mid lifetime)
Definition: Any.h:60
scl::utils::Any any(Args &&... args)
Creates an scl::tools::Any from the given type and arguments.
Definition: any.h:17