$p_{\rm T}$-differential $v_2$ measured with the two-particle correlation method for mesons ($\pi^\pm$, ${\rm K}^\pm$, ${\rm K}^0_{\rm S}$) and baryons (${\rm p}^+\bar{\rm p}$, $\Lambda+\bar{\Lambda}$). Left: results for semicentral Pb--Pb collisions at $\sqrt{s_{\mathrm{NN}}} = 5.02$ TeV. Middle: results in high-multiplicity p--Pb collisions at $\sqrt{s_{\mathrm{NN}}} = 5.02$ TeV. Right: Same for pp collisions at $\sqrt{s} = 13$ TeV. $\langle N_{\rm ch} \rangle$ is the average number of reconstructed, efficiency-corrected charged particles with $0.2 < p_{\rm T} < 3.0$ GeV/$c$ at midrapidity ($|\eta| < 0.8$). Horizontal bars (boxes) represent the statistical (systematic) uncertainties.