I know the names of most of the operators but not sure what operator<<
and operator>>
are called.
i.e.
operator=() // the assignment operator operator==() // the equality of comparison operator operator++() // the increment operator operator--() // decrement operator etc. operator<() // the less-than operator
and so forth...
The insertion ( << ) operator, which is preprogrammed for all standard C++ data types, sends bytes to an output stream object. Insertion operators work with predefined "manipulators," which are elements that change the default format of integer arguments.
The symbol << is called insertion operation and output operator.
<<
is both the insertion operator and the left-shift operator.>>
is the extraction operator and the right-shift operator.
In the context of iostreams, they are considered to be stream insertion/extraction. In the context of bit-shifting, they are left-shift and right-shift.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With