0

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.

user1237538
  • 41
  • 1
  • 3

1 Answers1

1

The u makes it a UTF-16 string literal. For more options see cppreference, for example.

Pzc
  • 88
  • 1
  • 3
  • 8