当前位置:网站首页>U++ operator learning notes
U++ operator learning notes
2022-06-22 14:52:00 【It's a bald rabbit】
assignment := This copy is a deep copy
TArray<int32> ValArr3;
ValArr3.Add(1);
ValArr3.Add(2);
ValArr3.Add(3);
auto ValArr4 = ValArr3;
// ValArr4 == [1,2,3];
ValArr4[0] = 5;
// ValArr3 == [1,2,3];
// ValArr4 == [5,2,3];Append Substitution of functions operator+=:
ValArr4 += ValArr3;
// ValArr4 == [5,2,3,1,2,3]MoveTemp: Mobile construction : It is the product of distinguishing left value from right value , Give one object directly to another , And destroy ( Master Guixi , Pass all your internal power to your disciple ), The time complexity is O(1).
ValArr3 = MoveTemp(ValArr4);
// ValArr3 == [5,2,3,1,2,3]
// ValArr4 == []Operator==: compare
TArray<FString> FlavorArr1;
FlavorArr1.Emplace(TEXT("Chocolate"));
FlavorArr1.Emplace(TEXT("Vanilla"));
// FlavorArr1 == ["Chocolate","Vanilla"]
auto FlavorArr2 = Str1Array;
// FlavorArr2 == ["Chocolate","Vanilla"]
bool bComparison1 = FlavorArr1 == FlavorArr2;
// bComparison1 == true
for (auto& Str : FlavorArr2)
{
Str = Str.ToUpper();
}
// FlavorArr2 == ["CHOCOLATE","VANILLA"]
bool bComparison2 = FlavorArr1 == FlavorArr2;
// bComparison2 == true, because FString comparison ignores case
Exchange(FlavorArr2[0], FlavorArr2[1]);
// FlavorArr2 == ["VANILLA","CHOCOLATE"]
bool bComparison3 = FlavorArr1 == FlavorArr2;
// bComparison3 == false, because the order has changed边栏推荐
- Shan Zhiguang, chairman of BSN Development Alliance: DDC can provide the underlying support for the development of China's meta universe industry
- Detailed explanation of CSAPP Labs
- U++ 迭代 排序 查询 学习笔记
- Messari annual report-2022
- 数据采集之:巧用布隆过滤器提取数据摘要
- Fight, programmer -- Chapter 42 will draw a bow like a full moon, look northwest and shoot Sirius
- Kukai TV ADB
- Unity's rich text color sets the color to be fully transparent
- 轻松上手Fluentd,结合 Rainbond 插件市场,日志收集更快捷
- U++ 运营商 学习笔记
猜你喜欢

S7-200SMART与FANUC机器人进行Profinet通信的具体方法和步骤

【无标题】

RealNetworks vs. 微软:早期流媒体行业之争
![[PR] basic process](/img/e6/13a5703cfb8e5c51ed06fe9b0d9485.png)
[PR] basic process

Biden signs two new laws aimed at strengthening government cyber security
![[Software Engineering] acquire requirements](/img/52/01320eee5e519910a62f48d604b180.png)
[Software Engineering] acquire requirements

C # WinForm photo album function, picture zooming, dragging, preview Pagination
![[Software Engineering] design module](/img/08/d55af729a8241e109fdeb96c896670.png)
[Software Engineering] design module

Basic usage and FAQs of jasperreport report report generation tool

基于SSM框架实现的甜品饮品店前后台管理系统甜品商城蛋糕店【源码+数据库】
随机推荐
A thorough understanding of singleton
Flutter video Le lecteur écoute et joue automatiquement la prochaine chanson
unity防止按钮btn被连续点击
bochs 软件使用记录
成都测试设备开发_单片机C语言之数组介绍
同花顺如何开户?在线开户安全么?
OpenVINO CPU加速调研
Redistemplate serialization
Le modèle de diffusion est encore fou! Cette fois - ci, la zone occupée était...
一文彻底弄懂建造者模式(Builder)
拜登签署两项旨在加强政府网络安全的新法案
扩散模型又杀疯了!这一次被攻占的领域是...
After reading this article, I will teach you to play with the penetration test target vulnhub - drivetingblues-5
Thoroughly understand the factory mode
Common real machine debugging plug-ins for unity commercial games
直播出海 | 国内直播间再出爆品,「外卷」全球如何致胜
Deadlock found when trying to get lock; Try restarting transaction
Fight, programmer -- Chapter 42 will draw a bow like a full moon, look northwest and shoot Sirius
[PR] basic process
轻松上手Fluentd,结合 Rainbond 插件市场,日志收集更快捷