MCPcopy Create free account
hub / github.com/3rdparty/libprocess / Break

Class Break

include/process/loop.hpp:186–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184 };
185
186 class Break
187 {
188 public:
189 Break(T t) : t(std::move(t)) {}
190
191 template <typename U>
192 operator ControlFlow<U>() const &
193 {
194 return ControlFlow<U>(ControlFlow<U>::Statement::BREAK, t);
195 }
196
197 template <typename U>
198 operator ControlFlow<U>() &&
199 {
200 return ControlFlow<U>(ControlFlow<U>::Statement::BREAK, std::move(t));
201 }
202
203 private:
204 T t;
205 };
206
207 ControlFlow(Statement s, Option<T> t) : s(s), t(std::move(t)) {}
208

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected