proxygen
empty.h
Go to the documentation of this file.
1 /*
2  * Copyright 2018-present Facebook, Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 #pragma once
17 
21 
22 namespace folly {
23 namespace pushmi {
24 namespace detail {
25 struct single_empty_sender_base : single_sender<ignoreSF, inlineEXF> {
26  using properties = property_set<
31 };
32 template <class... VN>
34  PUSHMI_TEMPLATE(class Out)
35  (requires ReceiveValue<Out, VN...>)
36  void operator()(
38  Out out) {
39  set_done(out);
40  }
41 };
42 } // namespace detail
43 
44 namespace operators {
45 template <class... VN>
46 auto empty() {
47  return make_single_sender(
49 }
50 
51 inline auto empty() {
52  return make_single_sender(
54 }
55 
56 } // namespace operators
57 } // namespace pushmi
58 } // namespace folly
—— Concurrent Priority Queue Implementation ——
Definition: AtomicBitSet.h:29
constexpr auto empty(C const &c) -> decltype(c.empty())
Definition: Access.h:55
requires requires(::folly::pushmi::invoke(std::declval< F >(), std::get< Is >(std::declval< Tuple >())...))) const expr decltype(auto) apply_impl(F &&f
PUSHMI_TEMPLATE(class In, class Out, bool SenderRequires, bool SingleSenderRequires, bool TimeSingleSenderRequires)(requires Sender< In > &&Receiver< Out >) constexpr bool sender_requires_from()
PUSHMI_INLINE_VAR constexpr struct folly::pushmi::make_single_sender_fn make_single_sender
PUSHMI_INLINE_VAR constexpr __adl::set_done_fn set_done