online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
/****************************************************************************** Online C++ Compiler. Code, Compile, Run and Debug C++ program online. Write your code in this editor and press "Run" button to compile and execute it. *******************************************************************************/ #include <iostream> #include <vector> using namespace std; template<typename Collection> std::enable_if_t< !std::is_rvalue_reference_v<Collection>, void > operator|(const Collection& col, int) { cout<<"lvalue\n"; } template<typename Collection> std::enable_if_t< std::is_rvalue_reference_v<Collection>, void > operator|(Collection&& col, int) { cout<<"rvalue\n"; } int main() { std::vector<int> v; v | 1; std::move(v) | 1; return 0; }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue