Namespaces | |
namespace | client |
namespace | commons |
namespace | core |
namespace | utils |
Typedefs | |
template<typename t > | |
using | ptr = t * |
Typedef native pointer type. | |
template<typename t > | |
using | ptr_to_const_val = t const * |
Typedef native pointer-to-const-value type. | |
template<typename t > | |
using | const_ptr_to_val = t *const |
Typedef native const-pointer-to-value type. | |
template<typename t > | |
using | const_ptr_to_const_val = const t *const |
Defines a constant pointer type to a constant value. | |
template<typename t > | |
using | fref = t && |
Forwarding reference. | |
template<typename t > | |
using | rvref = fref<t &&> |
R-value reference typedef Example. | |
template<typename t > | |
using | lvref = fref<t &> |
L-value reference typedef. equivalent to type &var Example. | |
template<typename t > | |
using | clvref = fref<const t &> |
const l-value reference typedef. | |
template<typename t > | |
using | in = clvref<t> |
Wraps a type and declares a value as an in parameter, which is a clvref. | |
template<typename t > | |
using | out = lvref<t> |
Wraps a type and declares a value as an out parameter, which is a lvref. | |
Root namespace for everything corelink. All modules are in nested namespaces
using corelink::clvref = fref<const t &> |
const l-value reference typedef.
t | native or secondary type |
usage: clvref<type> var. equivalent to const type &var Example
using corelink::const_ptr_to_const_val = const t *const |
Defines a constant pointer type to a constant value.
t | type of pointer |
Equivalent expansion would be const t *const val Example:
using corelink::const_ptr_to_val = t *const |
Typedef native const-pointer-to-value type.
t | type of pointer |
template expands to
Example:
using corelink::fref = t && |
Forwarding reference.
t | value type |
Please refer to https://en.cppreference.com/w/cpp/language/reference
using corelink::in = clvref<t> |
Wraps a type and declares a value as an in parameter, which is a clvref.
t | native or secondary type |
this is useful for parameters which should not be mutated when passed to a function
using corelink::lvref = fref<t &> |
L-value reference typedef. equivalent to type &var Example.
t | native or secondary type void foo(lvref<std::string> s)
{
// ...
}
...
std::string b = "Bye";
foo(b); // OK
fref< t & > lvref L-value reference typedef. equivalent to type &var Example. Definition typedefs.hpp:105 |
using corelink::out = lvref<t> |
Wraps a type and declares a value as an out parameter, which is a lvref.
t | native or secondary type |
this is useful for parameters which should be mutated when passed to a function
using corelink::ptr = t * |
Typedef native pointer type.
t | type of pointer |
template expands to
Example:
using corelink::ptr_to_const_val = t const * |
Typedef native pointer-to-const-value type.
t | type of pointer |
template expands to
Example:
using corelink::rvref = fref<t &&> |
R-value reference typedef Example.
t | native or secondary type void foo(rvref<std::string> s)
{
// ...
}
...
foo("Hello"); //OK
std::string b = "Bye";
foo(std::move(b)); // OK
|