proxygen
Observer-pre.h
Go to the documentation of this file.
1 /*
2  * Copyright 2016-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 
19 
20 namespace folly {
21 namespace observer_detail {
22 
23 template <typename T>
24 struct NonSharedPtr {
25  using type = typename std::decay<T>::type;
26 };
27 
28 template <typename T>
29 struct NonSharedPtr<std::shared_ptr<T>> {};
30 
31 template <typename T>
32 struct UnwrapSharedPtr {};
33 
34 template <typename T>
35 struct UnwrapSharedPtr<std::shared_ptr<T>> {
36  using type = typename std::decay<T>::type;
37 };
38 
39 template <typename F>
41 
42 template <typename F>
45 } // namespace observer_detail
46 } // namespace folly
PskType type
STL namespace.
typename NonSharedPtr< invoke_result_t< F >>::type ResultOf
Definition: Observer-pre.h:40
—— Concurrent Priority Queue Implementation ——
Definition: AtomicBitSet.h:29
typename std::decay< T >::type type
Definition: Observer-pre.h:25
typename UnwrapSharedPtr< invoke_result_t< F >>::type ResultOfUnwrapSharedPtr
Definition: Observer-pre.h:44