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
1719f51e
Commit
1719f51e
authored
Feb 01, 2018
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed tabbing
parent
f6f744f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
algs.h
dlib/algs.h
+13
-13
No files found.
dlib/algs.h
View file @
1719f51e
...
@@ -801,10 +801,10 @@ namespace dlib
...
@@ -801,10 +801,10 @@ namespace dlib
abs<4>::value == 4
abs<4>::value == 4
!*/
!*/
template
<
long
x
,
typename
enabled
=
void
>
template
<
long
x
,
typename
enabled
=
void
>
struct
tabs
{
const
static
long
value
=
x
;
};
struct
tabs
{
const
static
long
value
=
x
;
};
template
<
long
x
>
template
<
long
x
>
struct
tabs
<
x
,
typename
enable_if_c
<
(
x
<
0
)
>::
type
>
{
const
static
long
value
=
-
x
;
};
struct
tabs
<
x
,
typename
enable_if_c
<
(
x
<
0
)
>::
type
>
{
const
static
long
value
=
-
x
;
};
// ----------------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------------
...
@@ -816,10 +816,10 @@ namespace dlib
...
@@ -816,10 +816,10 @@ namespace dlib
abs<4,7>::value == 7
abs<4,7>::value == 7
!*/
!*/
template
<
long
x
,
long
y
,
typename
enabled
=
void
>
template
<
long
x
,
long
y
,
typename
enabled
=
void
>
struct
tmax
{
const
static
long
value
=
x
;
};
struct
tmax
{
const
static
long
value
=
x
;
};
template
<
long
x
,
long
y
>
template
<
long
x
,
long
y
>
struct
tmax
<
x
,
y
,
typename
enable_if_c
<
(
y
>
x
)
>::
type
>
{
const
static
long
value
=
y
;
};
struct
tmax
<
x
,
y
,
typename
enable_if_c
<
(
y
>
x
)
>::
type
>
{
const
static
long
value
=
y
;
};
// ----------------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------------
...
@@ -831,12 +831,12 @@ namespace dlib
...
@@ -831,12 +831,12 @@ namespace dlib
abs<4,7>::value == 4
abs<4,7>::value == 4
!*/
!*/
template
<
long
x
,
long
y
,
typename
enabled
=
void
>
template
<
long
x
,
long
y
,
typename
enabled
=
void
>
struct
tmin
{
const
static
long
value
=
x
;
};
struct
tmin
{
const
static
long
value
=
x
;
};
template
<
long
x
,
long
y
>
template
<
long
x
,
long
y
>
struct
tmin
<
x
,
y
,
typename
enable_if_c
<
(
y
<
x
)
>::
type
>
{
const
static
long
value
=
y
;
};
struct
tmin
<
x
,
y
,
typename
enable_if_c
<
(
y
<
x
)
>::
type
>
{
const
static
long
value
=
y
;
};
// ----------------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------------
#define DLIB_MAKE_HAS_MEMBER_FUNCTION_TEST(testname, returnT, funct_name, args) \
#define DLIB_MAKE_HAS_MEMBER_FUNCTION_TEST(testname, returnT, funct_name, args) \
struct _two_bytes_##testname { char a[2]; }; \
struct _two_bytes_##testname { char a[2]; }; \
...
...
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