Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
8df1d518
Commit
8df1d518
authored
Apr 01, 2015
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused wildcard_position, close #261
parent
a5575438
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
65 deletions
+0
-65
libcaf_core/caf/all.hpp
libcaf_core/caf/all.hpp
+0
-1
libcaf_core/caf/detail/try_match.hpp
libcaf_core/caf/detail/try_match.hpp
+0
-1
libcaf_core/caf/wildcard_position.hpp
libcaf_core/caf/wildcard_position.hpp
+0
-63
No files found.
libcaf_core/caf/all.hpp
View file @
8df1d518
...
@@ -83,7 +83,6 @@
...
@@ -83,7 +83,6 @@
#include "caf/event_based_actor.hpp"
#include "caf/event_based_actor.hpp"
#include "caf/primitive_variant.hpp"
#include "caf/primitive_variant.hpp"
#include "caf/uniform_type_info.hpp"
#include "caf/uniform_type_info.hpp"
#include "caf/wildcard_position.hpp"
#include "caf/timeout_definition.hpp"
#include "caf/timeout_definition.hpp"
#include "caf/binary_deserializer.hpp"
#include "caf/binary_deserializer.hpp"
#include "caf/await_all_actors_done.hpp"
#include "caf/await_all_actors_done.hpp"
...
...
libcaf_core/caf/detail/try_match.hpp
View file @
8df1d518
...
@@ -27,7 +27,6 @@
...
@@ -27,7 +27,6 @@
#include "caf/atom.hpp"
#include "caf/atom.hpp"
#include "caf/message.hpp"
#include "caf/message.hpp"
#include "caf/uniform_typeid.hpp"
#include "caf/uniform_typeid.hpp"
#include "caf/wildcard_position.hpp"
#include "caf/detail/type_nr.hpp"
#include "caf/detail/type_nr.hpp"
#include "caf/detail/type_list.hpp"
#include "caf/detail/type_list.hpp"
...
...
libcaf_core/caf/wildcard_position.hpp
deleted
100644 → 0
View file @
a5575438
/******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor *
* | |___ / ___ \| _| Framework *
* \____/_/ \_|_| *
* *
* Copyright (C) 2011 - 2015 *
* Dominik Charousset <dominik.charousset (at) haw-hamburg.de> *
* *
* Distributed under the terms and conditions of the BSD 3-Clause License or *
* (at your option) under the terms and conditions of the Boost Software *
* License 1.0. See accompanying files LICENSE and LICENSE_ALTERNATIVE. *
* *
* If you did not receive a copy of the license files, see *
* http://opensource.org/licenses/BSD-3-Clause and *
* http://www.boost.org/LICENSE_1_0.txt. *
******************************************************************************/
#ifndef CAF_WILDCARD_POSITION_HPP
#define CAF_WILDCARD_POSITION_HPP
#include <type_traits>
#include "caf/anything.hpp"
#include "caf/detail/type_list.hpp"
namespace
caf
{
/**
* Denotes the position of `anything` in a template parameter pack.
*/
enum
class
wildcard_position
{
nil
,
trailing
,
leading
,
in_between
,
multiple
};
/**
* Gets the position of `anything` from the type list `Types`.
*/
template
<
class
Types
>
constexpr
wildcard_position
get_wildcard_position
()
{
return
detail
::
tl_count
<
Types
,
is_anything
>::
value
>
1
?
wildcard_position
::
multiple
:
(
detail
::
tl_count
<
Types
,
is_anything
>::
value
==
1
?
(
std
::
is_same
<
typename
detail
::
tl_head
<
Types
>::
type
,
anything
>::
value
?
wildcard_position
::
leading
:
(
std
::
is_same
<
typename
detail
::
tl_back
<
Types
>::
type
,
anything
>::
value
?
wildcard_position
::
trailing
:
wildcard_position
::
in_between
))
:
wildcard_position
::
nil
);
}
}
// namespace caf
#endif // CAF_WILDCARD_POSITION_HPP
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