Meaning of this notion in 0-1 loss?
Your understanding is correct. 

This is known as the indicator function.

The indicator function of a subset $A$ of a set $X$ is a function

$$1_A(x)= \begin{cases}1, &amp; x \in A \\ 0, &amp; x \notin A \end{cases}$$