It’s an infinite loop, equivalent to while(true)
. When no termination condition is provided, the condition defaults to false (i.e., the loop will not terminate).
Related Contents:
- What are the advantages of list initialization (using curly braces)?
- Can I use break to exit multiple nested ‘for’ loops?
- How is “int main(){(([](){})());}” valid C++?
- Single quotes vs. double quotes in C or C++
- Post-increment and pre-increment within a ‘for’ loop produce same output [duplicate]
- Is there a technical reason to use > (
- Isn’t a semicolon (‘;’) needed after a function declaration in C++?
- In Stroustrup’s example, what does the colon mean in “return 1 : 2”?
- Is “long long” = “long long int” = “long int long” = “int long long”?
- Default value of function parameter
- How to break out of a loop from inside a switch?
- Python-equivalent of short-form “if” in C++ [duplicate]
- Why does the delete[] syntax exist in C++?
- Avoiding if statement inside a for loop?
- For loop inside its own curly braces
- Is “else if” a single keyword?
- Clean ways to write multiple ‘for’ loops
- Why is NULL undeclared?
- Need iterator when using ranged-based for loops
- What does : mean?
- Meaning of *& and **& in C++
- C++ array initialization
- C++ for each, pulling from vector elements
- Allow for Range-Based For with enum classes?
- How to make a for loop variable const with the exception of the increment statement?
- How can I print out C++ map values?
- Why does this call the default constructor?
- Parallel Loops in C++
- C++11 Range-based for-loop efficiency “const auto &i” versus “auto i”
- Aren’t Boolean variables always false by default?
- What does C++ syntax “A::B:A {};” mean
- What’s the syntax for declaring an array of function pointers without using a separate typedef?
- When is the “typename” keyword necessary? [duplicate]
- ++i or i++ in for loops ?? [duplicate]
- Get index of current element in C++ range-based for-loop
- Why did the range based ‘for’ loop specification change in C++17? [duplicate]
- What is the full “for” loop syntax in C?
- Why is the dereference operator (*) also used to declare a pointer?
- ‘for’ loop vs Qt’s ‘foreach’ in C++
- How to write a `for` loop over bool values (false and true)
- Syntax error with std::numeric_limits::max
- How do define anonymous functions in C++?
- In a “for” statement, should I use `!=` or `
- Is there a way to write a large number in C++ source code with spaces to make it more readable? [duplicate]
- What does C++ struct syntax “a : b” mean
- Why do try..catch blocks require braces?
- C++ — return x,y; What is the point?
- What does “[ this ]” mean in C++
- Is there any basis for this alternative ‘for’ loop syntax?
- Should I use std::for_each?