I want to understand what the following declaration means:
constexpr auto type = u"bluetooth-opp-transfer-complete"_ns;
I know constexpr evaluates things at compile time, but what does u mean here? Also will _ns gets appended here? if yes then how cause _ns is not defined anywhere.
The u makes it a UTF-16 string literal. For more options see cppreference, for example.