template<typename T>
void f(std::initializer_list<T> initList)
{
std::cout << "constructed with a " << initList.size() << "-element list\n";
for(auto i = l.begin(); i != l.end(); i++)
{
std::cout << "element " << *i << "\n";
}
}
std::initializer_list<int> f2()
{
return { 1, 2, 3 };
}
f({10, 20, 30});
f(f2());
output
constructed with a 3-element list
element 10
element 20
element 30
constructed with a 3-element list
element 1
element 2
element 3
피드 구독하기:
댓글 (Atom)
-
대상이 되는 이미지를 SVG(Scalable Vector Graphics) 이미지로 변환 - 각종 툴이나 웹상에서 바로 바꿔주는 다양한 방법이 있음(검색 검색~) - 찾은거 하나 : http://image.online-convert.com/c...
-
mitmproxy( man in the middle proxy) 설치 메모 https://mitmproxy.org/ 에서 설치 방법 확인 brew를 사용해서 설치 진행 - $ brew install mitmproxy - 설치후...
-
CommandBuffer를 사용하여 Gray Post Effect 효과를 적용해보는 Simple code... 일단 보여지는 결과는... 실행전 실행후 CommmandBuffer를 이용한 C#예제 소스 using ...
댓글 없음:
댓글 쓰기