Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rec
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
Show more breadcrumbs
LHCb
Rec
Commits
f33e8d19
Commit
f33e8d19
authored
2 years ago
by
Christoph Hasse
Browse files
Options
Downloads
Patches
Plain Diff
fix(functors) introduce Functors::Optional<T>::value_type
parent
85d3779f
No related branches found
No related tags found
1 merge request
!2977
feat(functors) implement automatic wrapping/unwrapping of optional returns from functor
Pipeline
#4159733
passed
2 years ago
Stage: test
Stage: .post
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Phys/FunctorCore/include/Functors/Optional.h
+2
-0
2 additions, 0 deletions
Phys/FunctorCore/include/Functors/Optional.h
with
2 additions
and
0 deletions
Phys/FunctorCore/include/Functors/Optional.h
+
2
−
0
View file @
f33e8d19
...
@@ -26,6 +26,8 @@ namespace Functors {
...
@@ -26,6 +26,8 @@ namespace Functors {
*/
*/
template
<
typename
T
>
template
<
typename
T
>
struct
Optional
{
struct
Optional
{
using
value_type
=
T
;
Optional
()
=
default
;
Optional
()
=
default
;
Optional
(
std
::
nullopt_t
/*unused*/
){};
Optional
(
std
::
nullopt_t
/*unused*/
){};
template
<
typename
U
=
T
,
template
<
typename
U
=
T
,
...
...
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