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.

1

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.