#include <memory>#include <type_traits>intmain(){// スマートポインタの要素型を取得するusingsmart_ptr_element=std::pointer_traits<std::shared_ptr<int>>::element_type;static_assert(std::is_same<smart_ptr_element,int>::value,"element type is int");// ポインタの要素型を取得するusingptr_element=std::pointer_traits<int*>::element_type;static_assert(std::is_same<ptr_element,int>::value,"element type is int");}
You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.