Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libsimple_file
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
We are moving to Forgejo!
You are on a read-only GitLab instance.
Show more breadcrumbs
namark
libsimple_file
Commits
e29b54dd
Commit
e29b54dd
authored
7 years ago
by
namark
Browse files
Options
Downloads
Patches
Plain Diff
Inlined some member function definitions,
didn't know I needed to do this... hopefully no one noticed...
parent
e69c5c3d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/simple/file.hpp
+17
-17
17 additions, 17 deletions
source/simple/file.hpp
with
17 additions
and
17 deletions
source/simple/file.hpp
+
17
−
17
View file @
e29b54dd
...
...
@@ -215,31 +215,31 @@ namespace string_stack
return
to
<<=
dump
(
from
);
}
flags
&
flags
::
throws
(
stream
::
iostate
these
)
inline
flags
&
flags
::
throws
(
stream
::
iostate
these
)
{
exceptions
|=
these
;
return
*
this
;
}
flags
&
flags
::
reads
()
inline
flags
&
flags
::
reads
()
{
io
|=
stream
::
in
;
return
*
this
;
}
flags
&
flags
::
writes
()
inline
flags
&
flags
::
writes
()
{
io
|=
stream
::
out
;
return
*
this
;
}
flags
&
flags
::
binary
()
inline
flags
&
flags
::
binary
()
{
io
|=
stream
::
binary
;
return
*
this
;
}
flags
&
flags
::
no_buffer
()
inline
flags
&
flags
::
no_buffer
()
{
buffering
=
false
;
return
*
this
;
...
...
@@ -353,24 +353,24 @@ namespace string_stack
}
template
<
typename
String
>
unsigned
manipulator
<
String
>::
dec
(
unsigned
amount
)
inline
unsigned
manipulator
<
String
>::
dec
(
unsigned
amount
)
{
return
size
-=
std
::
min
(
size
,
amount
);
}
template
<
typename
String
>
manipulator
<
String
>::
manipulator
(
String
&
on
,
String
delimeters
)
inline
manipulator
<
String
>::
manipulator
(
String
&
on
,
String
delimeters
)
:
stack
(
&
on
),
delimeters
(
delimeters
)
{}
template
<
typename
String
>
manipulator
<
String
>::
manipulator
(
manipulator
&&
other
)
:
manipulator
(
other
)
inline
manipulator
<
String
>::
manipulator
(
manipulator
&&
other
)
:
manipulator
(
other
)
{
other
.
release
();
}
template
<
typename
String
>
manipulator
<
String
>&&
manipulator
<
String
>::
operator
=
(
manipulator
&&
other
)
inline
manipulator
<
String
>&&
manipulator
<
String
>::
operator
=
(
manipulator
&&
other
)
{
*
this
=
other
;
other
.
release
();
...
...
@@ -378,34 +378,34 @@ namespace string_stack
}
template
<
typename
String
>
manipulator
<
String
>::~
manipulator
()
inline
manipulator
<
String
>::~
manipulator
()
{
while
(
size
)
drop
();
}
template
<
typename
String
>
void
manipulator
<
String
>::
release
()
inline
void
manipulator
<
String
>::
release
()
{
size
=
0
;
}
template
<
typename
String
>
String
manipulator
<
String
>::
pop
()
inline
String
manipulator
<
String
>::
pop
()
{
dec
();
return
string_stack
::
pop
(
*
stack
,
delimeters
);
};
template
<
typename
String
>
void
manipulator
<
String
>::
drop
()
inline
void
manipulator
<
String
>::
drop
()
{
string_stack
::
drop
(
*
stack
,
delimeters
);
dec
();
};
template
<
typename
String
>
auto
manipulator
<
String
>::
push
(
const
String
&
value
)
&
inline
auto
manipulator
<
String
>::
push
(
const
String
&
value
)
&
->
manipulator
<
String
>&
{
if
(
!
value
.
empty
())
...
...
@@ -418,7 +418,7 @@ namespace string_stack
template
<
typename
String
>
template
<
typename
...
Args
>
auto
manipulator
<
String
>::
push
(
const
String
&
value
,
Args
...
args
)
&
inline
auto
manipulator
<
String
>::
push
(
const
String
&
value
,
Args
...
args
)
&
->
manipulator
<
String
>&
{
push
(
value
);
...
...
@@ -426,7 +426,7 @@ namespace string_stack
}
template
<
typename
String
>
auto
manipulator
<
String
>::
push
(
const
String
&
value
)
&&
inline
auto
manipulator
<
String
>::
push
(
const
String
&
value
)
&&
->
manipulator
<
String
>&&
{
push
(
value
);
...
...
@@ -435,7 +435,7 @@ namespace string_stack
template
<
typename
String
>
template
<
typename
...
Args
>
auto
manipulator
<
String
>::
push
(
const
String
&
value
,
Args
...
args
)
&&
inline
auto
manipulator
<
String
>::
push
(
const
String
&
value
,
Args
...
args
)
&&
->
manipulator
<
String
>&&
{
std
::
move
(
*
this
).
push
(
value
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment