zookeeper-cpp
ZooKeeper Client for C++
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups
future.hpp File Reference

Controls the import of future and promise types. More...

#include <zk/config.hpp>

Go to the source code of this file.

Macros

#define ZKPP_FUTURE_USE_STD_EXPERIMENTAL   0
 Set this to 1 to use std::experimental::future and std::experimental::promise as the backing types for zk::future and zk::promise. More...
 
#define ZKPP_FUTURE_USE_CUSTOM   0
 Set this to 1 to use custom definitions of zk::future and zk::promise. More...
 
#define ZKPP_FUTURE_USE_STD   1
 Set this to 1 to use std::future and std::promise as the backing types for zk::future and zk::promise. More...
 
#define ZKPP_FUTURE_INCLUDE   <future>
 The file to include to get the implementation for future and promise. More...
 
#define ZKPP_FUTURE_TEMPLATE   std::future
 The template to use for zk::future. More...
 
#define ZKPP_PROMISE_TEMPLATE   std::promise
 The template to use for zk::promise. More...
 

Typedefs

template<typename T >
using zk::future = ZKPP_FUTURE_TEMPLATE< T >
 
template<typename T >
using zk::promise = ZKPP_PROMISE_TEMPLATE< T >
 

Detailed Description

Controls the import of future and promise types.

These are probably std::future and std::promise, but can be your custom types (as long as they behave in a manner similar enough to std::future and std::promise).

Definition in file future.hpp.