fn: add_member_fns
[contents]
f++ :
n++ :
Contents
Syntax
The syntax for
add_member_fns() add_member_fns(bool)
@add_member_fns() @add_member_fns(bool)
Description
The
- takes zero parameters and returns whether member functions are added by default; or
- takes a single boolean parameter specifying whether to add member functions by default (default value is
1 ).
f++ example
Example of
add_member_fns(0) console(add_member_fns()) std::vector<string>{...} v("cat", "dog") console(std::vector.at(v, 1))
n++ example
Example of
@add_member_fns(0) @console(add_member_fns()) @std::vector<string>{...}(v("cat", "dog")) @console(std::vector.at(v, 1))