Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
c1545996
Commit
c1545996
authored
Aug 17, 2013
by
Davis King
Browse files
updated docs
parent
8b656240
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
docs/docs/metaprogramming.xml
docs/docs/metaprogramming.xml
+28
-0
docs/docs/term_index.xml
docs/docs/term_index.xml
+1
-0
No files found.
docs/docs/metaprogramming.xml
View file @
c1545996
...
...
@@ -76,6 +76,7 @@
<item>
is_same_object
</item>
<item>
assign_zero_if_built_in_scalar_type
</item>
<item>
wrap_function
</item>
<item>
DLIB_MAKE_HAS_MEMBER_FUNCTION_TEST
</item>
</section>
<section>
...
...
@@ -574,6 +575,33 @@
</component>
<!-- ************************************************************************* -->
<component>
<name>
DLIB_MAKE_HAS_MEMBER_FUNCTION_TEST
</name>
<file>
dlib/algs.h
</file>
<spec_file
link=
"true"
>
dlib/algs.h
</spec_file>
<description>
<p>
The DLIB_MAKE_HAS_MEMBER_FUNCTION_TEST() macro is used to define traits templates
that tell you if a class has a certain member function. For example, to make a
test to see if a class has a public method with the signature void print(int) you
would say:
</p>
<blockquote>
<tt>
DLIB_MAKE_HAS_MEMBER_FUNCTION_TEST(has_print, void, print, (int))
</tt>
</blockquote>
Then you can check if a class, T, has this method by looking at the boolean value:
<blockquote>
<tt>
has_print
<
T
>
::value
</tt>
</blockquote>
which will be true if the member function is in the T class.
</description>
</component>
<!-- ************************************************************************* -->
<component>
...
...
docs/docs/term_index.xml
View file @
c1545996
...
...
@@ -658,6 +658,7 @@
<term
file=
"metaprogramming.html"
name=
"is_const_type"
include=
"dlib/algs.h"
/>
<term
file=
"metaprogramming.html"
name=
"is_reference_type"
include=
"dlib/algs.h"
/>
<term
file=
"metaprogramming.html"
name=
"is_same_type"
include=
"dlib/algs.h"
/>
<term
file=
"metaprogramming.html"
name=
"DLIB_MAKE_HAS_MEMBER_FUNCTION_TEST"
include=
"dlib/algs.h"
/>
<term
file=
"metaprogramming.html"
name=
"is_float_type"
include=
"dlib/algs.h"
/>
<term
file=
"metaprogramming.html"
name=
"is_same_object"
include=
"dlib/algs.h"
/>
<term
file=
"metaprogramming.html"
name=
"is_convertible"
include=
"dlib/algs.h"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment