강의

멘토링

커뮤니티

Inflearn Community Q&A

culrry's profile image
culrry

asked

[MMORPG Game Development with C++ and Unreal Series] Part 1: Introduction to C++ Programming

Template Basics #1

강의에서 템플릿 특수화를 할때

Written on

·

297

0

강의에서 템플릿 특수화를 할때

Knight* 이나 Knight&와 같은 참조 타입이 아닌 객체 그대로를 받은 이유가 있을까요?? 호출할때 더 많은 메모리를 차지하지 않나요?

C++

Answer 1

1

Rookiss님의 프로필 이미지
Rookiss
Instructor

정말 그냥 예시를 들어본 것이고,
말씀대로 성능 향상을 위해 주소 (Knight*이나 Knight&)로
넘겨도 물론 좋습니다.

culrry's profile image
culrry

asked

Ask a question