본문 바로가기

boost

[ Boost ] Ref. array.hpp /* The following code declares class array, * an STL container (as wrapper) for arrays of constant size. * * See * http://www.boost.org/libs/array/ * for documentation. * * The original author site is at: http://www.josuttis.com/ * * (C) Copyright Nicolai M. Josuttis 2001. * * Distributed under the Boost Software License, Version 1.0. (See * accompanying file LICENSE_1_0.txt or copy at * http://.. 더보기
[ Boost ] Boost.Array 정리 Boost 목록 링크 : http://tingcobell.tistory.com/295 ㅇ 내용 boost Ref.에 의하면 가변 크기의 배열은 std::vector or std::vector 의 동적인 배열을 사용할 수 있습니다. 하지만 일반적으로 알고 있는 가변의 크기는 오버헤드가 있기 마련이죠. 그래서 정적인 배열 고정크기를 정해 놓고 개발을 하게 됩니다. 배열이 컨테이너가 아니기에 불편함을 이루 말할 수 없습니다. int array_test[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9}; int array_test[10] = { 1, 2, 3, 4, 5, 6, 7, 8, 9}; boost 라이브러리에서 제공하고 있는 boost::array 라이브러리를 사용하여 테스트 해보겠습니다. 아래.. 더보기
[ Boost ] boost.foreach 간단한 예제-2 Boost 목록 링크 : http://tingcobell.tistory.com/295 Boost_foreach 매크로을 보니깐 간단한 코드가 있어 테스트 해보았습니다. 하지만 수행시간이 상당히 느리네요. 간단한 셈플로 그냥 이렇게 쓰는구나라고만 생각하시면 될것 같습니다. #include #include #include //#include //#include #include #include int main() { std::vector testVector; for( int i = 0 ; i < 10; i ++ ) testVector.push_back( i ); std::vector matrix_int; matrix_int.push_back( testVector); BOOST_FOREACH( std::vect.. 더보기
[ Boost ] 간단한 예제 Boost 목록 링크 : http://tingcobell.tistory.com/295 공부하면서 링크를 추가적으로 계속 업데이트 하겠습니다. * accumulators * any * array 링크 : http://tingcobell.tistory.com/300 링크 : http://tingcobell.tistory.com/302 링크 : http://tingcobell.tistory.com/303 * asio 링크 : http://tingcobell.tistory.com/316 링크 : http://tingcobell.tistory.com/317 링크 : * bind 링크 : http://tingcobell.tistory.com/313 링크 : http://tingcobell.tistory.com/31.. 더보기
[ boost ] boost 공부하기 1. 다운로드 하기 링크 : http://tingcobell.tistory.com/294 2. boost vs( visual studio ) 설정 하기 링크 : http://tingcobell.tistory.com/73 3. 간단한 셈플 컴파일 - 공부 셈플 링크 : http://tingcobell.tistory.com/297 더보기
[ boost ] 다운로드 Boost 목록 링크 : http://tingcobell.tistory.com/295 2007년 boost에 관심만 가졌지 실제로 사용하지 않았습니다. 하지만 이번에 boost을 공부를 해볼까 합니다. 정말로 매력적인 라이브러리가 아닐 수 없습니다. 저의 생각으로는 boost을 공부를 한 후, tbb에 관련된 내용을 공부하려고 합니다. tbb는 세미나를 통해 공부를 했지만, 정말로 필요로 할 것이다라는 생각만 했지 실제로는 몸이 그리 움직이지 않았습니다. 1. Boost 다운로드 링크 : http://www.boost.org 제가 받는 파일은 boost_1_36_1.zip 파일을 받았습니다. 리눅스 프로그래머인데 집에는 윈도우라서 회사에는 리눅스로 집에서는 윈도우로 공부하려고 합니다. 과연 귀찮니즘이 얼.. 더보기
Boost Install 관련 설치 링크 : http://dblab.co.kr/entry/boost-설치 설치 링크 : http://joyholic.kr/79 Boost Install 참조 boost_1_46_1에서는 아래와 같이 설치하도록 메뉴얼에서는 설명이 되어 있습니다. 1. Unpack the release. On the command line, go to the root of the unpacked tree. 2. Run either .\bootstrap.bat (on Windows), or ./bootstrap.sh (on other operating systems). 3. Run ./bjam install --prefix=PREFIX where PREFIX is a directory where you want Boost... 더보기
Boost Library 1.36 boost에 공부를 시작해볼까 합니다. 한국에 있을 때 기회는 있었지만, 게을러서 미쳐 생각지 못했던 부분이였습니다. 마음을 가다듬고 많이 하는것도 아닌 조금씩 조금씩 내공을 쌓아가야 할 노력이 필요할 때라 보고 천천히 준비해서 올리도록 하겠습니다. Version 1.36.0 August 14th, 2008 12:00 GMT New Libraries Accumulators: Framework for incremental calculation, and collection of statistical accumulators, from Eric Niebler. Exception: A library for transporting of arbitrary data in exception objects, and tra.. 더보기