get type name in c++

This commit is contained in:
Alexander Popov 2024-12-02 11:45:07 +03:00
parent 66c4b4d233
commit 3183d72e79

View File

@ -0,0 +1,14 @@
---
title: "🗳️ Получение типа из переменной в C++"
date: 2024-12-02T11:38:24+03:00
draft: false
tags: [cpp, development, tips]
---
Пример:
```cpp
#include <typeinfo>
...
std::cout << typeid(variable).name() << std::endl;
```