Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-cpplib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
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
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-cpplib
Merge requests
!42
Release 0.2.0
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Closed
Release 0.2.0
release-0.2.0
into
main
Overview
0
Commits
87
Pipelines
1
Changes
2
Closed
Timm Fitschen
requested to merge
release-0.2.0
into
main
2 years ago
Overview
0
Commits
87
Pipelines
1
Changes
2
0
0
Merge request reports
Viewing commit
b0047f3e
Prev
Next
Show latest version
2 files
+
7
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Verified
b0047f3e
STY: autoformatting
· b0047f3e
Timm Fitschen
authored
3 years ago
include/caosdb/acm/permission_rule.h
+
4
−
3
View file @ b0047f3e
Show full file
@@ -29,9 +29,9 @@
#ifndef CAOSDB_ACM_PERMISSION_RULE_H
#define CAOSDB_ACM_PERMISSION_RULE_H
#include
<stddef.h>
// for size_t
#include
<stddef.h>
// for size_t
#include
<unordered_set>
// for unordered_set
#include
<string>
// for string
#include
<string>
// for string
namespace
caosdb
::
acm
{
@@ -52,12 +52,13 @@ public:
[[
nodiscard
]]
auto
GetPermission
()
const
->
const
std
::
string
&
;
auto
operator
==
(
const
PermissionRule
&
other
)
const
->
bool
;
private:
PermissionRuleImpl
*
impl
;
};
struct
HashPermissionRule
{
auto
operator
()(
const
PermissionRule
&
rule
)
const
->
size_t
;
auto
operator
()(
const
PermissionRule
&
rule
)
const
->
size_t
;
};
using
PermissionRules
=
std
::
unordered_set
<
PermissionRule
,
HashPermissionRule
>
;
Loading