sandbox
Loading...
Searching...
No Matches
enable_private_constructor.hpp
1
#ifndef LIBSBX_UTILITY_ENABLE_PRIVATE_CONSTRUCTOR_HPP_
2
#define LIBSBX_UTILITY_ENABLE_PRIVATE_CONSTRUCTOR_HPP_
3
4
namespace
sbx::utility {
5
6
template
<
typename
Derived>
7
struct
enable_private_constructor
:
public
Derived {
8
template
<
typename
... Args>
9
enable_private_constructor
(Args&&... args) : Derived{std::forward<Args>(args)...} {}
10
};
// struct enable_private_constructor
11
12
}
// namespace sbx::utility
13
14
#endif
// LIBSBX_UTILITY_ENABLE_PRIVATE_CONSTRUCTOR_HPP_
sbx::utility::enable_private_constructor
Definition:
enable_private_constructor.hpp:7
libsbx-utility
libsbx
utility
enable_private_constructor.hpp
Generated by
1.9.5