Top "Operator-keyword" questions

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

Concatenating strings doesn't work as expected

I know it is a common issue, but looking for references and other material I don't find a clear answer …

c++ operator-keyword string-concatenation stdstring standard-library
How to use comparison operators like >, =, < on BigDecimal

I have a domain class with unitPrice set as BigDecimal data type. Now I am trying to create a method …

java operator-keyword bigdecimal
How do operator.itemgetter() and sort() work?

I have the following code: # initialize a = [] # create the table (name, age, job) a.append(["Nick", 30, "Doctor"]) a.append(["John", 8, "…

python sorting operator-keyword
Overloading operators in typedef structs (c++)

I want to make a typedef struct called pos (from position) that stores coordinates x and y. I am trying …

c++ struct typedef operator-keyword
C++ Double Address Operator? (&&)

I'm reading STL source code and I have no idea what && address operator is supposed to do. Here …

c++ stl operator-keyword memory-address
What do >> and << mean in Python?

I notice that I can do things like 2 << 5 to get 64 and 1000 >> 2 to get 250. Also I can …

python syntax operator-keyword
' << ' operator in verilog

i have a verilog code in which there is a line as follows: parameter ADDR_WIDTH = 8 ; parameter RAM_DEPTH = 1 <&…

operator-keyword verilog
What does double question mark (??) operator mean in PHP

I was diving into Symfony framework (version 4) code and found this piece of code: $env = $_SERVER['APP_ENV'] ?? 'dev'; I'm …

php operator-keyword
Multiple conditions in ternary operators

First off, the question is "Write a Java program to find the smallest of three numbers using ternary operators." Here's …

java operator-keyword ternary
Multiple conditions in ternary conditional operator?

I am taking my first semester of Java programming, and we've just covered the conditional operator (? :) conditions. I have two …

java conditional operator-keyword