@wallhackio @aescling Reported. Clodsire must not forget the C++ standard, who else can I direct C++ questions at? :blobcathissing:

Follow

@vaporeon_ @aescling decltype eats an expression and the result is the type of that expression.

This is what it's usage looks like. (This a silly thing to do, of course. But I wanted a simple demonstration of the syntax)

int a = 3;
decltype(a) c = a;

Apparently there are situations where manually writing the type of something is really really nasty and just saying "look C++, it's whatever the type of this thing is" can be convenient

Sign in to participate in the conversation
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.