Top "Operator-keyword" questions

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

Reference-type conversion operators: asking for trouble?

When I compile the following code using g++ class A {}; void foo(A&) {} int main() { foo(A()); return 0; } I …

c++ operators reference type-conversion operator-keyword
How != and == operators work on Integers in Java?

The following code seemed really confusing to me since it provided two different outputs.The code was tested on jdk 1.7. …

java integer wrapper operator-keyword equals-operator
Hack to convert javascript number to UInt32

Edit: This question is out of date as the Polyfill example has been updated. I'm leaving the question here just …

javascript bit-manipulation operator-keyword indexof uint32
new operator for memory allocation on heap

I was looking at the signature of new operator. Which is: void* operator new (std::size_t size) throw (std::…

c++ memory-management new-operator operator-keyword dynamic-memory-allocation
C++, what is := used for?

I'm seeing this in a program. I can't find anything on ":=". What is it used for? The program says: val1 := …

c++ variable-assignment operator-keyword colon-equals
Operator overloading and namespaces

Possible Duplicate: Where should non-member operator overloads be placed? While browsing on SO, I often find questions or answer that …

c++ namespaces operator-overloading operator-keyword
MongoDB indexes and the $or operator

Sorry if this has been asked before. I couldn't find a definitive answer. Can I query on a mongodb index …

mongodb operator-keyword indexing
Implementing operator< in C++

I have a class with a few numeric fields such as: class Class1 { int a; int b; int c; public: // …

c++ operators operator-overloading operator-keyword
Why not provide an operator ? : in scala

There is an operator ? : in Java which can be used to select a value according to the boolean expression. For …

java scala operator-keyword
Is it not possible to call C++ operators manually?

I'm trying to understand operators in C++ more carefully. I know that operators in C++ are basically just functions. What …

c++ operator-keyword