Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
c1545996
Commit
c1545996
authored
Aug 17, 2013
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated docs
parent
8b656240
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
metaprogramming.xml
docs/docs/metaprogramming.xml
+28
-0
term_index.xml
docs/docs/term_index.xml
+1
-0
No files found.
docs/docs/metaprogramming.xml
View file @
c1545996
...
@@ -76,6 +76,7 @@
...
@@ -76,6 +76,7 @@
<item>
is_same_object
</item>
<item>
is_same_object
</item>
<item>
assign_zero_if_built_in_scalar_type
</item>
<item>
assign_zero_if_built_in_scalar_type
</item>
<item>
wrap_function
</item>
<item>
wrap_function
</item>
<item>
DLIB_MAKE_HAS_MEMBER_FUNCTION_TEST
</item>
</section>
</section>
<section>
<section>
...
@@ -574,6 +575,33 @@
...
@@ -574,6 +575,33 @@
</component>
</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>
<component>
...
...
docs/docs/term_index.xml
View file @
c1545996
...
@@ -658,6 +658,7 @@
...
@@ -658,6 +658,7 @@
<term
file=
"metaprogramming.html"
name=
"is_const_type"
include=
"dlib/algs.h"
/>
<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_reference_type"
include=
"dlib/algs.h"
/>
<term
file=
"metaprogramming.html"
name=
"is_same_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_float_type"
include=
"dlib/algs.h"
/>
<term
file=
"metaprogramming.html"
name=
"is_same_object"
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"
/>
<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