lemonheim note
2017년 11월 23일 목요일
배열 개수를 참조하는 템플릿 함수
template<typename T
, std::size_t N
>
void f(T
(¶m)[N]
)
{
std::cout << "param address : " << param << ", size : " << N << "\n";
}
int x[] = { 1, 2, 3, 4 };
f(x);
output
param address 0x7ffeefbff5b0, size : 4
Program ended with exit code: 0
댓글 없음:
댓글 쓰기
최근 게시물
이전 게시물
홈
피드 구독하기:
댓글 (Atom)
mitmproxy 설치(mac), iPhone Proxy 연결
Blender를 이용해서 2D Image를 3D Object로 만들기..
대상이 되는 이미지를 SVG(Scalable Vector Graphics) 이미지로 변환 - 각종 툴이나 웹상에서 바로 바꿔주는 다양한 방법이 있음(검색 검색~) - 찾은거 하나 : http://image.online-convert.com/c...
mitmproxy 설치(mac), iPhone Proxy 연결
mitmproxy( man in the middle proxy) 설치 메모 https://mitmproxy.org/ 에서 설치 방법 확인 brew를 사용해서 설치 진행 - $ brew install mitmproxy - 설치후...
MQTT mosquitto 서버 Mac 설치/ 테스트
MQTT mosquitto 서버 설치와 간이 테스트 https://mosquitto.org 모스키토 설치 brew install mosquitto 모스키토 서비스 실행 brew services start mosquitto 모스키...
댓글 없음:
댓글 쓰기