Top "Operator-keyword" questions

In several languages, the operator keyword is used to identify methods which will be used in operator overloading.

ternary operator in php with echo value

I want to write the following code in ternary operator. I tried in many way but it does not work …

php operator-keyword ternary
Declaring function objects for comparison?

I have seen other people questions but found none that applied to what I'm trying to achieve here. I'm trying …

c++ operators operator-keyword function-object
Operator == cannot be applied to 'Long' and 'Int' in Kotlin

I'm attempting to implement parts of Mike Penz' NavigationDrawer (https://github.com/mikepenz/MaterialDrawer) in Kotlin. Since then I've run …

android kotlin operator-keyword
C++ template/ostream operator question

trying to get the operator to work, but throwing me bunch of errors: my header file template <unsigned short …

c++ operator-keyword ostream
php - Meaning of question mark colon operator

What does ?: in this line mean? $_COOKIE['user'] ?: getusername($_COOKIE['user']); Thank you.

php operator-keyword
operator std::string() const?

Can somebody tell me what precisely operator std::string() stands for?

c++ operator-keyword
Passing operator as a parameter

I want to have a function that evaluates 2 bool vars (like a truth table) for example: since T | F : T …

c++ c parameters operator-keyword
Using == operator in Java to compare wrapper objects

I'm reading SCJP Java 6 by Kathy Sierra and Bert Bates and this book is confusing me so much. On page 245 …

java integer wrapper equals operator-keyword
Is it possible to write auto-cast operator outside a struct?

The exact situation is next: I have defined in system API structs CGPoint and CGSize, and I want to be …

c++ casting operator-keyword
Namespaces and operator resolution

I am using a library that defines output stream operators (operator<<) in the global namespace. In my own …

c++ namespaces operator-keyword