proxygen
UninitializedMemoryHacks.h File Reference
#include <string>
#include <type_traits>
#include <vector>

Go to the source code of this file.

Namespaces

 folly
 —— Concurrent Priority Queue Implementation ——
 
 folly::detail
 

Macros

#define FOLLY_DECLARE_VECTOR_RESIZE_WITHOUT_INIT_IMPL(TYPE)
 

Functions

void folly::detail::unsafeStringSetLargerSize (std::string &s, std::size_t n)
 
template<typename T >
void folly::detail::unsafeVectorSetLargerSize (std::vector< T > &v, std::size_t n)
 
void folly::resizeWithoutInitialization (std::string &s, std::size_t n)
 
template<typename T , typename = typename std::enable_if< std::is_trivially_destructible<T>::value && !std::is_same<T, bool>::value>::type>
void folly::resizeWithoutInitialization (std::vector< T > &v, std::size_t n)
 

Macro Definition Documentation

#define FOLLY_DECLARE_VECTOR_RESIZE_WITHOUT_INIT_IMPL (   TYPE)
Value:
namespace folly { \
namespace detail { \
void unsafeVectorSetLargerSizeImpl(std::vector<TYPE>& v, std::size_t); \
template <> \
inline void unsafeVectorSetLargerSize<TYPE>( \
std::vector<TYPE> & v, \
std::size_t n) { \
unsafeVectorSetLargerSizeImpl(v, n); \
} \
} \
}
auto v
—— Concurrent Priority Queue Implementation ——
Definition: AtomicBitSet.h:29

Definition at line 251 of file UninitializedMemoryHacks.h.