Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- UE4 커스텀로그
- 람다
- 정렬알고리즘
- C++
- 스마트포인터
- 언리얼가비지컬렉터
- stl
- 강참조
- dataasset
- 구조적 바인딩
- moreeffectiveC++
- unorder_map
- 자료구조
- map
- 정렬
- 델리게이트
- 알고리즘
- UML관련
- 약참조
- UELOG
- enumasByue
- 애셋로드
- 람다사용정렬
- 데이터애셋
- 프로그래머스
- 선택정렬
- 크리티컬섹션
- UE_LOG
- C++최적화
- BFS
Archives
- Today
- Total
기억을 위한 기록들
[UE-CPP]std::tie 함수와 언리얼에서의 tie 본문
https://en.cppreference.com/w/cpp/utility/tuple/tie
std::tie - cppreference.com
template< class... Types > std::tuple tie( Types&... args ) noexcept; (since C++11) (until C++14) template< class... Types > constexpr std::tuple tie( Types&... args ) noexcept; (since C++14) Creates a tuple of lvalue references to its arguments or instanc
en.cppreference.com
언리얼엔진 C++에서의 tie 함수
사용예)
TTuple<int, FString> AMyActor::DoSomething()
{
return TTuple<int, FString>(1,"Hello");
}
int var1;
FString var2;
Tie(var1, var2) = DoSomething();
//var1변수에는 1 저장되고,
//var2변수에서는 "Hello"가 저장되었다.
'UnrealEngine > UnrealEngine C++ 관련' 카테고리의 다른 글
언리얼엔진 UI UMG 및 C++ 최적화에 관하여 (0) | 2024.07.21 |
---|---|
[UE CPP] 체력관리 컴포넌트 (HealthManageComponent) (0) | 2023.07.16 |
[UE-CPP] FStruct를 TMap/TSet의 Key로 사용하고 싶다면?(with GetTypeHash) (0) | 2023.07.09 |
[UE-CPP] 부동소수점 비교시 (0) | 2023.05.14 |
[UE-C++] 특정 액터가 블루프린트 상속받은지 확인하는 방법 (0) | 2023.03.02 |