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

Class fat_executor

test/any_completion_executor.cpp:41–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41struct fat_executor
42{
43 fat_executor(int id)
44 : id_(id)
45 {
46 std::memset(data_, 0, sizeof(data_));
47 }
48
49 template <typename F>
50 void execute(const F&) const
51 {
52 }
53
54 friend bool operator==(const fat_executor& a,
55 const fat_executor& b) noexcept
56 {
57 return a.id_ == b.id_;
58 }
59
60 friend bool operator!=(const fat_executor& a,
61 const fat_executor& b) noexcept
62 {
63 return a.id_ != b.id_;
64 }
65
66 int id_;
67 unsigned char data_[1024];
68};
69
70namespace boost {
71namespace asio {

Calls

no outgoing calls

Tested by

no test coverage detected