본문 바로가기

C++10

std::string Ogre::String 생성자의 함수호출 낭비 Ogre::String 에 대한 정보 Ogre 의 옵션에 커스텀 메모리 생성 옵션이 1인 경우에대해..... 아래의 디파인이 들어있다.#define OGRE_STRING_USE_CUSTOM_MEMORY_ALLOCATOR 1 #if OGRE_STRING_USE_CUSTOM_MEMORY_ALLOCATOR typedef std::basic_string _StringBase; //생략 #else typedef std::wstring _StringBase; //생략 #endif typedef _StringBase String; cpp 코드 스타일로 보여주는 기능에 버그가 있어서 사이의 코드가 자동으로 변경되므로 위의 코드에 이상한 부분은 직접 헤더를 열어보시길... 이렇게 선언이 되어있고.. C:\Program .. 2011. 2. 1.
std::string 간단히 속도 테스트를 해보았다.. 2011-02-18 내용수정 >> 결론 4번 /////////////////////////////////////////////////////////////////////////////// std::string 간단히 속도 테스트를 해보았다.. 테스트 방법은 vs 2008 에서 콘솔 프로젝트를 생성하고 설정은 기본으로 만들어진 그대로 진행하였다. 최적화는 기본으로 속도 최적화로 설정 되어있었다.. #include "stdafx.h" #include #include #include #include #pragma comment(lib, "Winmm") #define printLine(x) std::cout 2011. 2. 1.
Visual Studio 에서 명령 창 도구 사용하는 방법 Visual Studio 에서 명령 창 도구 사용하는 방법 http://msdn.microsoft.com/ko-kr/library/c785s0kz.aspx http://msdn.microsoft.com/ko-kr/library/c3a0kd3x.aspx 명령창에 간단한 계산도 되고 복잡한건 아직 안해봐서 모르겠음.. >? 1+1 2 >? sizeof(bool) 1 2011. 1. 28.
STL 컨테이너들의 사이즈를 한번 출력해 봤다.. #include "stdafx.h" #include #include #include #include #include #include #include #define print_sizeof(x) std::cout deque1; print_sizeof(deque1); std::queue queue1; print_sizeof(queue1); } 각 컨테이너의 요소에 넣는 타입은 어떤걸 넣어도 같은 사이즈가 나왔다.. 2011. 1. 24.