std::function 과 std::not1, std::not_fn
함수 bool 출력값을 뒤집어주는 간단한 wrapper를 짜려했는데, 생각보다 귀찮은게 존재했다 그냥 함수도 받고, 함수 객체도 받아야하기 때문 type erasing 을 수행함. 덕분에 const 설정도 casting에 의해 날라감 TODO: 내역 추가 function 을 보관하는 과정에서 cast 이용하기에 const 날라감 https://modoocode.com/254 https://stackoverflow.com/questions/18453145/how-is-stdfunction-implemented https://stackoverflow.com/questions/14936539/how-stdfunction-works https://lesleylai.info/en/const-correcness-s..
카테고리 없음
2020. 9. 4. 11:58
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크