From 52d62c73b435252e70b95308494b2beafe016c52 Mon Sep 17 00:00:00 2001 From: BlackMATov Date: Sun, 5 Feb 2023 23:52:58 +0700 Subject: [PATCH] string ilist alias --- develop/singles/headers/meta.hpp/meta_all.hpp | 243 ++++-------------- headers/meta.hpp/meta_base.hpp | 1 + headers/meta.hpp/meta_binds.hpp | 99 ++----- headers/meta.hpp/meta_binds/class_bind.hpp | 66 +---- headers/meta.hpp/meta_binds/scope_bind.hpp | 33 +-- headers/meta.hpp/meta_types.hpp | 44 ++-- 6 files changed, 106 insertions(+), 380 deletions(-) diff --git a/develop/singles/headers/meta.hpp/meta_all.hpp b/develop/singles/headers/meta.hpp/meta_all.hpp index 3d91905..af52e79 100644 --- a/develop/singles/headers/meta.hpp/meta_all.hpp +++ b/develop/singles/headers/meta.hpp/meta_all.hpp @@ -1406,6 +1406,7 @@ namespace meta_hpp { using any_type_list = std::vector; using argument_list = std::vector; + using string_ilist = std::initializer_list; using metadata_map = std::map>; using typedef_map = std::map>; @@ -1956,38 +1957,38 @@ namespace meta_hpp::detail namespace meta_hpp { - using array_flags = detail::array_flags; - using array_bitflags = detail::array_bitflags; + using detail::array_bitflags; + using detail::array_flags; - using class_flags = detail::class_flags; - using class_bitflags = detail::class_bitflags; + using detail::class_bitflags; + using detail::class_flags; - using constructor_flags = detail::constructor_flags; - using constructor_bitflags = detail::constructor_bitflags; + using detail::constructor_bitflags; + using detail::constructor_flags; - using destructor_flags = detail::destructor_flags; - using destructor_bitflags = detail::destructor_bitflags; + using detail::destructor_bitflags; + using detail::destructor_flags; - using enum_flags = detail::enum_flags; - using enum_bitflags = detail::enum_bitflags; + using detail::enum_bitflags; + using detail::enum_flags; - using function_flags = detail::function_flags; - using function_bitflags = detail::function_bitflags; + using detail::function_bitflags; + using detail::function_flags; - using member_flags = detail::member_flags; - using member_bitflags = detail::member_bitflags; + using detail::member_bitflags; + using detail::member_flags; - using method_flags = detail::method_flags; - using method_bitflags = detail::method_bitflags; + using detail::method_bitflags; + using detail::method_flags; - using number_flags = detail::number_flags; - using number_bitflags = detail::number_bitflags; + using detail::number_bitflags; + using detail::number_flags; - using pointer_flags = detail::pointer_flags; - using pointer_bitflags = detail::pointer_bitflags; + using detail::pointer_bitflags; + using detail::pointer_flags; - using reference_flags = detail::reference_flags; - using reference_bitflags = detail::reference_bitflags; + using detail::reference_bitflags; + using detail::reference_flags; } namespace meta_hpp @@ -4131,74 +4132,37 @@ namespace meta_hpp // function_ template < detail::function_kind Function, function_policy_kind Policy = function_policy::as_copy_t > - class_bind& function_( // - std::string name, - Function function, - Policy = {} - ); + class_bind& function_(std::string name, Function function, Policy = {}); template < detail::function_kind Function, function_policy_kind Policy = function_policy::as_copy_t > - class_bind& function_( // - std::string name, - Function function, - function_opts opts, - Policy = {} - ); + class_bind& function_(std::string name, Function function, function_opts opts, Policy = {}); template < detail::function_kind Function, function_policy_kind Policy = function_policy::as_copy_t > - class_bind& function_( // - std::string name, - Function function, - std::initializer_list arguments, - Policy = {} - ); + class_bind& function_(std::string name, Function function, string_ilist arguments, Policy = {}); // member_ template < detail::member_kind Member, member_policy_kind Policy = member_policy::as_copy_t > requires detail::class_bind_member_kind - class_bind& member_( // - std::string name, - Member member, - Policy = {} - ); + class_bind& member_(std::string name, Member member, Policy = {}); template < detail::member_kind Member, member_policy_kind Policy = member_policy::as_copy_t > requires detail::class_bind_member_kind - class_bind& member_( // - std::string name, - Member member, - member_opts opts, - Policy = {} - ); + class_bind& member_(std::string name, Member member, member_opts opts, Policy = {}); // method_ template < detail::method_kind Method, method_policy_kind Policy = method_policy::as_copy_t > requires detail::class_bind_method_kind - class_bind& method_( // - std::string name, - Method method, - Policy = {} - ); + class_bind& method_(std::string name, Method method, Policy = {}); template < detail::method_kind Method, method_policy_kind Policy = method_policy::as_copy_t > requires detail::class_bind_method_kind - class_bind& method_( // - std::string name, - Method method, - method_opts opts, - Policy = {} - ); + class_bind& method_(std::string name, Method method, method_opts opts, Policy = {}); template < detail::method_kind Method, method_policy_kind Policy = method_policy::as_copy_t > requires detail::class_bind_method_kind - class_bind& method_( // - std::string name, - Method method, - std::initializer_list arguments, - Policy = {} - ); + class_bind& method_(std::string name, Method method, string_ilist arguments, Policy = {}); // typdef_ @@ -4208,19 +4172,10 @@ namespace meta_hpp // variable_ template < detail::pointer_kind Pointer, variable_policy_kind Policy = variable_policy::as_copy_t > - class_bind& variable_( // - std::string name, - Pointer pointer, - Policy = {} - ); + class_bind& variable_(std::string name, Pointer pointer, Policy = {}); template < detail::pointer_kind Pointer, variable_policy_kind Policy = variable_policy::as_copy_t > - class_bind& variable_( // - std::string name, - Pointer pointer, - variable_opts opts, - Policy = {} - ); + class_bind& variable_(std::string name, Pointer pointer, variable_opts opts, Policy = {}); }; } @@ -4317,27 +4272,13 @@ namespace meta_hpp // function_ template < detail::function_kind Function, function_policy_kind Policy = function_policy::as_copy_t > - scope_bind& function_( // - std::string name, - Function function, - Policy = {} - ); + scope_bind& function_(std::string name, Function function, Policy = {}); template < detail::function_kind Function, function_policy_kind Policy = function_policy::as_copy_t > - scope_bind& function_( // - std::string name, - Function function, - function_opts opts, - Policy = {} - ); + scope_bind& function_(std::string name, Function function, function_opts opts, Policy = {}); template < detail::function_kind Function, function_policy_kind Policy = function_policy::as_copy_t > - scope_bind& function_( // - std::string name, - Function function, - std::initializer_list arguments, - Policy = {} - ); + scope_bind& function_(std::string name, Function function, string_ilist arguments, Policy = {}); // typedef_ @@ -4347,19 +4288,10 @@ namespace meta_hpp // variable_ template < detail::pointer_kind Pointer, variable_policy_kind Policy = variable_policy::as_copy_t > - scope_bind& variable_( // - std::string name, - Pointer pointer, - Policy = {} - ); + scope_bind& variable_(std::string name, Pointer pointer, Policy = {}); template < detail::pointer_kind Pointer, variable_policy_kind Policy = variable_policy::as_copy_t > - scope_bind& variable_( // - std::string name, - Pointer pointer, - variable_opts opts, - Policy = {} - ); + scope_bind& variable_(std::string name, Pointer pointer, variable_opts opts, Policy = {}); }; } @@ -4547,22 +4479,13 @@ namespace meta_hpp template < detail::class_kind Class > template < detail::function_kind Function, function_policy_kind Policy > - class_bind& class_bind::function_( // - std::string name, - Function function, - Policy policy - ) { + class_bind& class_bind::function_(std::string name, Function function, Policy policy) { return function_(std::move(name), std::move(function), {}, policy); } template < detail::class_kind Class > template < detail::function_kind Function, function_policy_kind Policy > - class_bind& class_bind::function_( // - std::string name, - Function function, - function_opts opts, - Policy - ) { + class_bind& class_bind::function_(std::string name, Function function, function_opts opts, Policy) { auto state = detail::function_state::make(std::move(name), std::move(function), std::move(opts.metadata)); if ( opts.arguments.size() > state->arguments.size() ) { @@ -4581,12 +4504,7 @@ namespace meta_hpp template < detail::class_kind Class > template < detail::function_kind Function, function_policy_kind Policy > - class_bind& class_bind::function_( // - std::string name, - Function function, - std::initializer_list arguments, - Policy - ) { + class_bind& class_bind::function_(std::string name, Function function, string_ilist arguments, Policy) { auto state = detail::function_state::make(std::move(name), std::move(function), {}); if ( arguments.size() > state->arguments.size() ) { @@ -4610,23 +4528,14 @@ namespace meta_hpp template < detail::class_kind Class > template < detail::member_kind Member, member_policy_kind Policy > requires detail::class_bind_member_kind - class_bind& class_bind::member_( // - std::string name, - Member member, - Policy policy - ) { + class_bind& class_bind::member_(std::string name, Member member, Policy policy) { return member_(std::move(name), std::move(member), {}, policy); } template < detail::class_kind Class > template < detail::member_kind Member, member_policy_kind Policy > requires detail::class_bind_member_kind - class_bind& class_bind::member_( // - std::string name, - Member member, - member_opts opts, - Policy - ) { + class_bind& class_bind::member_(std::string name, Member member, member_opts opts, Policy) { auto state = detail::member_state::make(std::move(name), std::move(member), std::move(opts.metadata)); detail::insert_or_assign(get_data().members, std::move(state)); return *this; @@ -4639,23 +4548,14 @@ namespace meta_hpp template < detail::class_kind Class > template < detail::method_kind Method, method_policy_kind Policy > requires detail::class_bind_method_kind - class_bind& class_bind::method_( // - std::string name, - Method method, - Policy policy - ) { + class_bind& class_bind::method_(std::string name, Method method, Policy policy) { return method_(std::move(name), std::move(method), {}, policy); } template < detail::class_kind Class > template < detail::method_kind Method, method_policy_kind Policy > requires detail::class_bind_method_kind - class_bind& class_bind::method_( // - std::string name, - Method method, - method_opts opts, - Policy - ) { + class_bind& class_bind::method_(std::string name, Method method, method_opts opts, Policy) { auto state = detail::method_state::make(std::move(name), std::move(method), std::move(opts.metadata)); if ( opts.arguments.size() > state->arguments.size() ) { @@ -4675,12 +4575,7 @@ namespace meta_hpp template < detail::class_kind Class > template < detail::method_kind Method, method_policy_kind Policy > requires detail::class_bind_method_kind - class_bind& class_bind::method_( // - std::string name, - Method method, - std::initializer_list arguments, - Policy - ) { + class_bind& class_bind::method_(std::string name, Method method, string_ilist arguments, Policy) { auto state = detail::method_state::make(std::move(name), std::move(method), {}); if ( arguments.size() > state->arguments.size() ) { @@ -4714,22 +4609,13 @@ namespace meta_hpp template < detail::class_kind Class > template < detail::pointer_kind Pointer, variable_policy_kind Policy > - class_bind& class_bind::variable_( // - std::string name, - Pointer pointer, - Policy policy - ) { + class_bind& class_bind::variable_(std::string name, Pointer pointer, Policy policy) { return variable_(std::move(name), std::move(pointer), {}, policy); } template < detail::class_kind Class > template < detail::pointer_kind Pointer, variable_policy_kind Policy > - class_bind& class_bind::variable_( // - std::string name, - Pointer pointer, - variable_opts opts, - Policy - ) { + class_bind& class_bind::variable_(std::string name, Pointer pointer, variable_opts opts, Policy) { auto state = detail::variable_state::make(std::move(name), std::move(pointer), std::move(opts.metadata)); detail::insert_or_assign(get_data().variables, std::move(state)); return *this; @@ -4814,21 +4700,12 @@ namespace meta_hpp // template < detail::function_kind Function, function_policy_kind Policy > - scope_bind& scope_bind::function_( // - std::string name, - Function function, - Policy policy - ) { + scope_bind& scope_bind::function_(std::string name, Function function, Policy policy) { return function_(std::move(name), std::move(function), {}, policy); } template < detail::function_kind Function, function_policy_kind Policy > - scope_bind& scope_bind::function_( // - std::string name, - Function function, - function_opts opts, - Policy - ) { + scope_bind& scope_bind::function_(std::string name, Function function, function_opts opts, Policy) { auto state = detail::function_state::make(std::move(name), std::move(function), std::move(opts.metadata)); if ( opts.arguments.size() > state->arguments.size() ) { @@ -4846,12 +4723,7 @@ namespace meta_hpp } template < detail::function_kind Function, function_policy_kind Policy > - scope_bind& scope_bind::function_( // - std::string name, - Function function, - std::initializer_list arguments, - Policy - ) { + scope_bind& scope_bind::function_(std::string name, Function function, string_ilist arguments, Policy) { auto state = detail::function_state::make(std::move(name), std::move(function), {}); if ( arguments.size() > state->arguments.size() ) { @@ -4883,21 +4755,12 @@ namespace meta_hpp // template < detail::pointer_kind Pointer, variable_policy_kind Policy > - scope_bind& scope_bind::variable_( // - std::string name, - Pointer pointer, - Policy policy - ) { + scope_bind& scope_bind::variable_(std::string name, Pointer pointer, Policy policy) { return variable_(std::move(name), std::move(pointer), {}, policy); } template < detail::pointer_kind Pointer, variable_policy_kind Policy > - scope_bind& scope_bind::variable_( // - std::string name, - Pointer pointer, - variable_opts opts, - Policy - ) { + scope_bind& scope_bind::variable_(std::string name, Pointer pointer, variable_opts opts, Policy) { auto state = detail::variable_state::make(std::move(name), std::move(pointer), std::move(opts.metadata)); detail::insert_or_assign(get_state().variables, std::move(state)); return *this; diff --git a/headers/meta.hpp/meta_base.hpp b/headers/meta.hpp/meta_base.hpp index 00f5578..63682d2 100644 --- a/headers/meta.hpp/meta_base.hpp +++ b/headers/meta.hpp/meta_base.hpp @@ -148,6 +148,7 @@ namespace meta_hpp { using any_type_list = std::vector; using argument_list = std::vector; + using string_ilist = std::initializer_list; using metadata_map = std::map>; using typedef_map = std::map>; diff --git a/headers/meta.hpp/meta_binds.hpp b/headers/meta.hpp/meta_binds.hpp index 8fec8d0..606bbbe 100644 --- a/headers/meta.hpp/meta_binds.hpp +++ b/headers/meta.hpp/meta_binds.hpp @@ -174,74 +174,37 @@ namespace meta_hpp // function_ template < detail::function_kind Function, function_policy_kind Policy = function_policy::as_copy_t > - class_bind& function_( // - std::string name, - Function function, - Policy = {} - ); + class_bind& function_(std::string name, Function function, Policy = {}); template < detail::function_kind Function, function_policy_kind Policy = function_policy::as_copy_t > - class_bind& function_( // - std::string name, - Function function, - function_opts opts, - Policy = {} - ); + class_bind& function_(std::string name, Function function, function_opts opts, Policy = {}); template < detail::function_kind Function, function_policy_kind Policy = function_policy::as_copy_t > - class_bind& function_( // - std::string name, - Function function, - std::initializer_list arguments, - Policy = {} - ); + class_bind& function_(std::string name, Function function, string_ilist arguments, Policy = {}); // member_ template < detail::member_kind Member, member_policy_kind Policy = member_policy::as_copy_t > requires detail::class_bind_member_kind - class_bind& member_( // - std::string name, - Member member, - Policy = {} - ); + class_bind& member_(std::string name, Member member, Policy = {}); template < detail::member_kind Member, member_policy_kind Policy = member_policy::as_copy_t > requires detail::class_bind_member_kind - class_bind& member_( // - std::string name, - Member member, - member_opts opts, - Policy = {} - ); + class_bind& member_(std::string name, Member member, member_opts opts, Policy = {}); // method_ template < detail::method_kind Method, method_policy_kind Policy = method_policy::as_copy_t > requires detail::class_bind_method_kind - class_bind& method_( // - std::string name, - Method method, - Policy = {} - ); + class_bind& method_(std::string name, Method method, Policy = {}); template < detail::method_kind Method, method_policy_kind Policy = method_policy::as_copy_t > requires detail::class_bind_method_kind - class_bind& method_( // - std::string name, - Method method, - method_opts opts, - Policy = {} - ); + class_bind& method_(std::string name, Method method, method_opts opts, Policy = {}); template < detail::method_kind Method, method_policy_kind Policy = method_policy::as_copy_t > requires detail::class_bind_method_kind - class_bind& method_( // - std::string name, - Method method, - std::initializer_list arguments, - Policy = {} - ); + class_bind& method_(std::string name, Method method, string_ilist arguments, Policy = {}); // typdef_ @@ -251,19 +214,10 @@ namespace meta_hpp // variable_ template < detail::pointer_kind Pointer, variable_policy_kind Policy = variable_policy::as_copy_t > - class_bind& variable_( // - std::string name, - Pointer pointer, - Policy = {} - ); + class_bind& variable_(std::string name, Pointer pointer, Policy = {}); template < detail::pointer_kind Pointer, variable_policy_kind Policy = variable_policy::as_copy_t > - class_bind& variable_( // - std::string name, - Pointer pointer, - variable_opts opts, - Policy = {} - ); + class_bind& variable_(std::string name, Pointer pointer, variable_opts opts, Policy = {}); }; } @@ -360,27 +314,13 @@ namespace meta_hpp // function_ template < detail::function_kind Function, function_policy_kind Policy = function_policy::as_copy_t > - scope_bind& function_( // - std::string name, - Function function, - Policy = {} - ); + scope_bind& function_(std::string name, Function function, Policy = {}); template < detail::function_kind Function, function_policy_kind Policy = function_policy::as_copy_t > - scope_bind& function_( // - std::string name, - Function function, - function_opts opts, - Policy = {} - ); + scope_bind& function_(std::string name, Function function, function_opts opts, Policy = {}); template < detail::function_kind Function, function_policy_kind Policy = function_policy::as_copy_t > - scope_bind& function_( // - std::string name, - Function function, - std::initializer_list arguments, - Policy = {} - ); + scope_bind& function_(std::string name, Function function, string_ilist arguments, Policy = {}); // typedef_ @@ -390,19 +330,10 @@ namespace meta_hpp // variable_ template < detail::pointer_kind Pointer, variable_policy_kind Policy = variable_policy::as_copy_t > - scope_bind& variable_( // - std::string name, - Pointer pointer, - Policy = {} - ); + scope_bind& variable_(std::string name, Pointer pointer, Policy = {}); template < detail::pointer_kind Pointer, variable_policy_kind Policy = variable_policy::as_copy_t > - scope_bind& variable_( // - std::string name, - Pointer pointer, - variable_opts opts, - Policy = {} - ); + scope_bind& variable_(std::string name, Pointer pointer, variable_opts opts, Policy = {}); }; } diff --git a/headers/meta.hpp/meta_binds/class_bind.hpp b/headers/meta.hpp/meta_binds/class_bind.hpp index f2d7f89..30a7bd4 100644 --- a/headers/meta.hpp/meta_binds/class_bind.hpp +++ b/headers/meta.hpp/meta_binds/class_bind.hpp @@ -112,22 +112,13 @@ namespace meta_hpp template < detail::class_kind Class > template < detail::function_kind Function, function_policy_kind Policy > - class_bind& class_bind::function_( // - std::string name, - Function function, - Policy policy - ) { + class_bind& class_bind::function_(std::string name, Function function, Policy policy) { return function_(std::move(name), std::move(function), {}, policy); } template < detail::class_kind Class > template < detail::function_kind Function, function_policy_kind Policy > - class_bind& class_bind::function_( // - std::string name, - Function function, - function_opts opts, - Policy - ) { + class_bind& class_bind::function_(std::string name, Function function, function_opts opts, Policy) { auto state = detail::function_state::make(std::move(name), std::move(function), std::move(opts.metadata)); if ( opts.arguments.size() > state->arguments.size() ) { @@ -146,12 +137,7 @@ namespace meta_hpp template < detail::class_kind Class > template < detail::function_kind Function, function_policy_kind Policy > - class_bind& class_bind::function_( // - std::string name, - Function function, - std::initializer_list arguments, - Policy - ) { + class_bind& class_bind::function_(std::string name, Function function, string_ilist arguments, Policy) { auto state = detail::function_state::make(std::move(name), std::move(function), {}); if ( arguments.size() > state->arguments.size() ) { @@ -175,23 +161,14 @@ namespace meta_hpp template < detail::class_kind Class > template < detail::member_kind Member, member_policy_kind Policy > requires detail::class_bind_member_kind - class_bind& class_bind::member_( // - std::string name, - Member member, - Policy policy - ) { + class_bind& class_bind::member_(std::string name, Member member, Policy policy) { return member_(std::move(name), std::move(member), {}, policy); } template < detail::class_kind Class > template < detail::member_kind Member, member_policy_kind Policy > requires detail::class_bind_member_kind - class_bind& class_bind::member_( // - std::string name, - Member member, - member_opts opts, - Policy - ) { + class_bind& class_bind::member_(std::string name, Member member, member_opts opts, Policy) { auto state = detail::member_state::make(std::move(name), std::move(member), std::move(opts.metadata)); detail::insert_or_assign(get_data().members, std::move(state)); return *this; @@ -204,23 +181,14 @@ namespace meta_hpp template < detail::class_kind Class > template < detail::method_kind Method, method_policy_kind Policy > requires detail::class_bind_method_kind - class_bind& class_bind::method_( // - std::string name, - Method method, - Policy policy - ) { + class_bind& class_bind::method_(std::string name, Method method, Policy policy) { return method_(std::move(name), std::move(method), {}, policy); } template < detail::class_kind Class > template < detail::method_kind Method, method_policy_kind Policy > requires detail::class_bind_method_kind - class_bind& class_bind::method_( // - std::string name, - Method method, - method_opts opts, - Policy - ) { + class_bind& class_bind::method_(std::string name, Method method, method_opts opts, Policy) { auto state = detail::method_state::make(std::move(name), std::move(method), std::move(opts.metadata)); if ( opts.arguments.size() > state->arguments.size() ) { @@ -240,12 +208,7 @@ namespace meta_hpp template < detail::class_kind Class > template < detail::method_kind Method, method_policy_kind Policy > requires detail::class_bind_method_kind - class_bind& class_bind::method_( // - std::string name, - Method method, - std::initializer_list arguments, - Policy - ) { + class_bind& class_bind::method_(std::string name, Method method, string_ilist arguments, Policy) { auto state = detail::method_state::make(std::move(name), std::move(method), {}); if ( arguments.size() > state->arguments.size() ) { @@ -279,22 +242,13 @@ namespace meta_hpp template < detail::class_kind Class > template < detail::pointer_kind Pointer, variable_policy_kind Policy > - class_bind& class_bind::variable_( // - std::string name, - Pointer pointer, - Policy policy - ) { + class_bind& class_bind::variable_(std::string name, Pointer pointer, Policy policy) { return variable_(std::move(name), std::move(pointer), {}, policy); } template < detail::class_kind Class > template < detail::pointer_kind Pointer, variable_policy_kind Policy > - class_bind& class_bind::variable_( // - std::string name, - Pointer pointer, - variable_opts opts, - Policy - ) { + class_bind& class_bind::variable_(std::string name, Pointer pointer, variable_opts opts, Policy) { auto state = detail::variable_state::make(std::move(name), std::move(pointer), std::move(opts.metadata)); detail::insert_or_assign(get_data().variables, std::move(state)); return *this; diff --git a/headers/meta.hpp/meta_binds/scope_bind.hpp b/headers/meta.hpp/meta_binds/scope_bind.hpp index cccc1bc..9877cab 100644 --- a/headers/meta.hpp/meta_binds/scope_bind.hpp +++ b/headers/meta.hpp/meta_binds/scope_bind.hpp @@ -20,21 +20,12 @@ namespace meta_hpp // template < detail::function_kind Function, function_policy_kind Policy > - scope_bind& scope_bind::function_( // - std::string name, - Function function, - Policy policy - ) { + scope_bind& scope_bind::function_(std::string name, Function function, Policy policy) { return function_(std::move(name), std::move(function), {}, policy); } template < detail::function_kind Function, function_policy_kind Policy > - scope_bind& scope_bind::function_( // - std::string name, - Function function, - function_opts opts, - Policy - ) { + scope_bind& scope_bind::function_(std::string name, Function function, function_opts opts, Policy) { auto state = detail::function_state::make(std::move(name), std::move(function), std::move(opts.metadata)); if ( opts.arguments.size() > state->arguments.size() ) { @@ -52,12 +43,7 @@ namespace meta_hpp } template < detail::function_kind Function, function_policy_kind Policy > - scope_bind& scope_bind::function_( // - std::string name, - Function function, - std::initializer_list arguments, - Policy - ) { + scope_bind& scope_bind::function_(std::string name, Function function, string_ilist arguments, Policy) { auto state = detail::function_state::make(std::move(name), std::move(function), {}); if ( arguments.size() > state->arguments.size() ) { @@ -89,21 +75,12 @@ namespace meta_hpp // template < detail::pointer_kind Pointer, variable_policy_kind Policy > - scope_bind& scope_bind::variable_( // - std::string name, - Pointer pointer, - Policy policy - ) { + scope_bind& scope_bind::variable_(std::string name, Pointer pointer, Policy policy) { return variable_(std::move(name), std::move(pointer), {}, policy); } template < detail::pointer_kind Pointer, variable_policy_kind Policy > - scope_bind& scope_bind::variable_( // - std::string name, - Pointer pointer, - variable_opts opts, - Policy - ) { + scope_bind& scope_bind::variable_(std::string name, Pointer pointer, variable_opts opts, Policy) { auto state = detail::variable_state::make(std::move(name), std::move(pointer), std::move(opts.metadata)); detail::insert_or_assign(get_state().variables, std::move(state)); return *this; diff --git a/headers/meta.hpp/meta_types.hpp b/headers/meta.hpp/meta_types.hpp index 5efa6c9..0290e31 100644 --- a/headers/meta.hpp/meta_types.hpp +++ b/headers/meta.hpp/meta_types.hpp @@ -24,38 +24,38 @@ namespace meta_hpp { - using array_flags = detail::array_flags; - using array_bitflags = detail::array_bitflags; + using detail::array_bitflags; + using detail::array_flags; - using class_flags = detail::class_flags; - using class_bitflags = detail::class_bitflags; + using detail::class_bitflags; + using detail::class_flags; - using constructor_flags = detail::constructor_flags; - using constructor_bitflags = detail::constructor_bitflags; + using detail::constructor_bitflags; + using detail::constructor_flags; - using destructor_flags = detail::destructor_flags; - using destructor_bitflags = detail::destructor_bitflags; + using detail::destructor_bitflags; + using detail::destructor_flags; - using enum_flags = detail::enum_flags; - using enum_bitflags = detail::enum_bitflags; + using detail::enum_bitflags; + using detail::enum_flags; - using function_flags = detail::function_flags; - using function_bitflags = detail::function_bitflags; + using detail::function_bitflags; + using detail::function_flags; - using member_flags = detail::member_flags; - using member_bitflags = detail::member_bitflags; + using detail::member_bitflags; + using detail::member_flags; - using method_flags = detail::method_flags; - using method_bitflags = detail::method_bitflags; + using detail::method_bitflags; + using detail::method_flags; - using number_flags = detail::number_flags; - using number_bitflags = detail::number_bitflags; + using detail::number_bitflags; + using detail::number_flags; - using pointer_flags = detail::pointer_flags; - using pointer_bitflags = detail::pointer_bitflags; + using detail::pointer_bitflags; + using detail::pointer_flags; - using reference_flags = detail::reference_flags; - using reference_bitflags = detail::reference_bitflags; + using detail::reference_bitflags; + using detail::reference_flags; } namespace meta_hpp