allocator

    3

    1답변

    간단한 포인터 증가 할당 자 (그들은 공식적인 이름이 있습니까?) 나는 lock-free 알고리즘을 찾고 있습니다. 그것은 사소한 것처럼 보이지만 내 구현이 올바른지에 대한 피드백을 받고 싶습니다. 하지 스레드 구현 : byte * head; // current head of remaining buffer byte * end; // end of remai

    5

    3답변

    최근에 나는 std::string s 주어진 다음 진술이 사실이 아니라고 나타났습니다. s.max_size() == s.get_allocator().max_size(); 나는이 흥미로운 기본적 std::string으로 size_type(-1)의 이론적 인 한계가 std::allocator<char> 사용 찾을 (예 내가 2의 보수를 있으리라 믿고있어 알

    0

    2답변

    을 내 새로운 프로젝트에서 내가 template<typename T> class Data { public: T getValue(); private: boost::numeric::ublas::matrix<T> data; } 같은 상위 계층에 대한 간단한 템플릿 저장 유형을 제공 할 module.I 데이터 관리를 구축하고 내 목표는 B

    0

    1답변

    나는 CSV 파일에서지도를로드하는 템플릿 함수를 정의 : error: no matching function for call to ‘loadCSV(const QString, std::map<int, int, std::less<int>, std::allocator<std::pair<const int, int> > >*)’ 내 함수 호출이 암시 적 인수를