MCPcopy Create free account
hub / github.com/NVIDIA/stdexec / obj

Class obj

test/exec/asio/test_completion_token.cpp:649–674  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

647 "[asioexec][completion_token]")
648 {
649 class obj
650 {
651 bool throw_;
652 public:
653 explicit obj(bool t = false) noexcept
654 : throw_(t)
655 {}
656
657 obj(obj&&) = default;
658
659 obj(obj const & other)
660 : throw_(other.throw_)
661 {
662 if (throw_)
663 {
664 throw std::logic_error("Test");
665 }
666 }
667
668 obj& operator=(obj const &) = delete;
669
670 bool operator==(obj const & rhs) const noexcept
671 {
672 return throw_ == rhs.throw_;
673 }
674 };
675
676 obj const expected;
677 std::exception_ptr ex;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected