
friend keyword에 대해서 간단하게 내용을 정리하고 넘어가려 합니다. 클래스 멤버 중에는 private로 선언된 멤버들이 있을 겁니다. 하지만 클래스 외부에서는 권한이 없으므로 해당 멤버에 접근하지 못합니다.. 이 때 클래스 외부에서 해당 private member들을 접근할 수 있도록 해주는 것이 바로 friend 키워드입니다. 해당 키워드는 아래의 방법처럼 사용이 가능합니다. 간단한 예시도 함께 보겠습니다. #include class Information { public: int updateValue(int newValue) { int oldValue=value; value=newValue; return oldValue; } private: friend void friendAccess(); ..
👾 CS
2023. 10. 7. 16:10
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- longtaildistribution
- 경량화 모델
- DeepLearning
- longtaillearning
- deeplearningbasics
- MobileNet
- effectivenumberofsamples
- fisherconsistency
- computervisionresearch
- LossFunction
- classimbalance
- separable
- 딥러닝불균형데이터
- depthwise
- imbalanceddata
- Focal loss
- dataaugmentation
- Example
- bayesclassifier
- logitadjustment
- code
- convolution
- tensorflow
- machinelearningtips
- deeplearningtheory
- focalloss
- classificationloss
- machinelearningtheory
- pairwisemargin
- 이론적안정성
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함