MCPcopy Create free account
hub / github.com/boostorg/asio / as_tuple_constness_test

Function as_tuple_constness_test

test/as_tuple.cpp:97–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97void as_tuple_constness_test()
98{
99# if defined(BOOST_ASIO_HAS_STD_FUTURE_CLASS)
100 boost::asio::io_context io1;
101 boost::asio::system_timer timer1(io1);
102
103 auto tok1 = boost::asio::as_tuple(boost::asio::use_future);
104 (void)timer1.async_wait(tok1);
105 (void)timer1.async_wait(std::move(tok1));
106
107 const auto tok2 = boost::asio::as_tuple(boost::asio::use_future);
108 (void)timer1.async_wait(tok2);
109 (void)timer1.async_wait(std::move(tok2));
110
111 constexpr auto tok3 = boost::asio::as_tuple(boost::asio::use_future);
112 (void)timer1.async_wait(tok3);
113 (void)timer1.async_wait(std::move(tok3));
114# endif // defined(BOOST_ASIO_HAS_STD_FUTURE_CLASS)
115}
116
117void partial_as_tuple_test()
118{

Callers

nothing calls this directly

Calls 1

async_waitMethod · 0.45

Tested by

no test coverage detected