You can break
out of do{...}while(false)
.
More Related Contents:
- Best implementation of a vector of vectors in C++ [closed]
- OpenCV Point(x,y) represent (column,row) or (row,column)
- What exactly is a reentrant function?
- Magic number in boost::hash_combine
- Efficient string concatenation in C++
- Creating all possible k combinations of n items in C++
- Initializing member variables using the same name for constructor arguments as for the member variables allowed by the C++ standard? [duplicate]
- C++11 “auto” semantics
- Non const lvalue references
- Why isn’t the [] operator const for STL maps?
- Does the GotW #101 “solution” actually solve anything?
- Unsequenced value computations (a.k.a sequence points)
- How to set up googleTest as a shared library on Linux
- What is the most elegant way to read a text file with c++?
- Why lifetime of temporary doesn’t extend till lifetime of enclosing object?
- Specialization of templated member function in templated class
- C++ – Decimal to binary converting
- Why does the standard differentiate between direct-list-initialization and copy-list-initialization?
- What is the difference between a static and const variable?
- How to handle key press events in C++
- Implementing a std::vector like container without undefined behavior
- What is `constinit` in C++20?
- Use of “this” keyword in C++ [duplicate]
- GCC: Difference between -O3 and -Os
- Size of the classes in case of virtual inheritance
- boost::asio + std::future – Access violation after closing socket
- Is it possible to use threads to speed up file reading?
- “APIENTRY _tWinMain” and “WINAPI WinMain” difference
- Loading a dll from a dll?
- Reading a Matrix txt file and storing as an array