get type name in c++
This commit is contained in:
parent
66c4b4d233
commit
3183d72e79
14
content/posts/2024/cpp/get-variable-type.md
Normal file
14
content/posts/2024/cpp/get-variable-type.md
Normal 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;
|
||||
```
|
Loading…
Reference in New Issue
Block a user