Click here to Skip to main content
Page 1 of 17
Page Size: 10 · 25 · 50


Tag filtered by:  STL [x]
Catalog 11 May 2013   license: Limited Time Trial
IncrediBuild is an easy-to-use platform for accelerating Windows-based processes through advanced Grid Computing technology. IncrediBuild speeds up Visual Studio and make based code builds as well as data builds, scripts and applications.
Question 11 May 2013   license: CPOL
McDonnell faces the big punching Mexican for the vacant IBF bantamweight crown at Doncaster’s Keepmoat Stadium on May 11, as he aims to become the town’s first ever boxing world champion.The fight, plus several undercard bouts, will be available to watch for £10.95 on Sky, Virgin, online and...
STL
Tip/Trick 6 May 2013   license: CPOL
An STL based simple XML serialization and de-serialization engine.
Answer 24 Apr 2013   license: CPOL
If you are compiling a C++/CLI (mixed-mode) application, you might want to compare the performative with .NET containers. Often they are much faster than C++ one in mixed/mode.I don't know why but there are benchmarks on the web if you want to have an idea.By the way debugging C++/CLI...
Question 24 Apr 2013   license: CPOL
I need to insert approx. 5,000,000 integers to a hash_set in C++, it takes many hours to go through the loop in debug mode. In release mode it slows down the program, takes about a minute, which is not fantastic, but I can live with it. Is it normal for hash_set? Insert should be O(1)...
Answer 24 Apr 2013   license: CPOL
STL is very slow while debugging in Visual Studio due to the iterator debugging support. You can speed this up dramatically by setting #define _HAS_ITERATOR_DEBUGGING 0Quelle: http://msdn.microsoft.com/en-us/library/aa985939(v=vs.80).aspx[^]
Answer 23 Apr 2013   license: CPOL
The calculation is based on the formula (for your case):max_size = (size_t)(-1) / sizeof(BIGSTRUCT);For an array with 1 int (4 bytes) this yields 1,073,741,823.For an array with 10 int (40 bytes) this yields 107,374,182.Unfortunately it is not based on your actual machine configuration.
Answer 22 Apr 2013   license: CPOL
Now, if I am on a 32bit machine, with 2GB RAM, and if I have a vector of size say 170,000,000 members, what is the maximum size of each member do I have to have so I will not go out of memory?First, the physical amount of RAM has nothing to do with it: a modern OS will shuffle your memory...
Answer 22 Apr 2013   license: CPOL
When using the stl, you can never pre-calculate the exact maximum size of a collection of items. The best you can do is approximate. What follows is an estimate I make here and now, with a few unstated assumptions. If you ask 2 other people, you might get 5 or more different answers. If you...
Question 21 Apr 2013   license: CPOL
#include "stdafx.h"#include #include #include "conio.h"int main (){ typedef struct { int iArr[10]; }BIGSTRUCT; BIGSTRUCT st; std::vector myvector; int ii = sizeof(BIGSTRUCT); std::cout
Article 17 Apr 2013   license: CPL
A brief introduction to a C++ String Tokenizer implementation
Answer 12 Apr 2013   license: CPOL
By doing that, you are going against the design principles of STL.Maybe you can consider doing something like:template void Iterate(const T &container, F func, bool forward){ if (forward) { std::for_each(container.begin(), container.end(), func); } else ...
Answer 11 Apr 2013   license: CPOL
I don't think inheritance is the right tool for the job in this case. Would something like the following give you what you need with less issues.struct MyContext{ public: typedef std::list List;...
Question 11 Apr 2013   license: CPOL
Sorry if my English or my coding conventions are bad.std::list is the STL list.I am trying to make a library that will use std::list::iterator and std::list::reverse_iterator seamlessly to the user according to his choice.First, I wouldn't like to implement all std::list::iterator...
Tip/Trick 8 Apr 2013   license: LGPL3
The HPC Template Library is a supplement to the Standard Template Library providing threadsafe containers.
Tip/Trick 20 Mar 2013   license: CPOL
How to show progress in a Boost test application.
Technical Blog 14 Mar 2013   license: CPOL
Several issues related to smart pointers that is worth to know.
Technical Blog 11 Mar 2013   license: CPOL
A trivial business logic layer from scratch with a TDD approach.
Article 5 Feb 2013   license: Apache
This article discusses how to implement and use a template-based C++ benchmarking library.
Answer 3 Feb 2013   license: CPOL
I know where you're coming from because I've faced the same issue with Boost library code myself. I want to use cool idea X but I don't want to be responsible for adding 2000 dependencies to the source tree and updating them every few weeks let alone fixing anything that breaks as a result of...
Answer 3 Feb 2013   license: CPOL
It is impossible to suggest what you can remove as all components tend to be interconnected. Libraries such as boost are developed over time and components are added and updated. Removing any single file could mean that your program will not build. And since disk space is not at a premium these...
Question 3 Feb 2013   license: CPOL
Boost is an excellent library, but sometimes, it's inconvenient to add the whole library. So I want to extract a little part of Boost, only the necessary files are extracted.I know BCP.exe, but it didn't work as expected. BCP.exe extract too many unnecessary files.I work with Visual C++...
Answer 27 Jan 2013   license: CPOL
Don't confuse Hungarian notation with C++ code conventions. I'm not aware of any official C++ code conventions. It's a free world, and everybody should pick what they consider most appropriate.Why wchar_t or uint8_t? The _t suffix that simply denotes "type" was a convention introduced in...
Answer 27 Jan 2013   license: CPOL
There are a lot of opinions about coding conventions. If you ask 10 people what it is about, you will get 11 opinions.The style you cite with a 1/2/3 letter lowercase prefix is called "Hungarian notation" (ask Google) and was most popular with Microsoft code in the early years. It has fallen...
Answer 27 Jan 2013   license: CPOL
There is not such thing like "the one and only code convention".Your team/company may/may not decide on some code convention.If no explicit convention is given, anyone does whatever he thinks is the right way (or does not care at all...).Naming conventions, layouting, etc. is very much...
Question 27 Jan 2013   license: CPOL
I have started to learn c++ language and when i opened ysm code (for example), there was conventions like "szName" or "ptrName", "iName", etc. I know what is that "sz" - null terminated string, "ptr" - pointer, "i" - integer. In another code were functions with parameters and every parametr was...
Answer 26 Jan 2013   license: CPOL
SPAMMER SPAMMER SPAMMER SPAMMER SPAMMER SPAMMER SPAMMER
STL
Technical Blog 15 Jan 2013   license: CPOL
For running your apps there are two possible ways : Running on the emulator Running on a device Running on the emulator Emulator are the Android Virtual Devices (AVD) that we need to configure in order to run our android apps. Step 1 – Open AVD Manager Step 2 – Click on New Button to [..
STL
Article 7 Jan 2013   license: BSD
An infinite list seen in Haskell. Moreover you can chose its concurrent behavior through the policy.
Question 2 Jan 2013   license: CPOL
Hi, AllRecently I try to use std::function and Lambda expression to simply my code.However there are some weird problems.#include #include #include int main(int argc, char *argv[]){ std::function arr[]={ [&](int n)->bool...
Technical Blog 29 Dec 2012   license: CPOL
In a 3D game environment, vectors are used to hold the values of points or vertices. Thus a vector would contain a coordinate [x, y, z] which represents the specific vertex in 3D space. Points are defined such by vectors because the start position of the vector is usually taken as [0, 0, 0] which [.
STL
Article 22 Dec 2012   license: CPOL
An introduction to context handles in RPC. A simple RPC client/server application using context handles is explained.
Article 22 Dec 2012   license: CPOL
An introduction to RPC programming. A simple RPC client/server application is explained.
Answer 16 Dec 2012   license: CPOL
Looking at the documentation[^] I don't see any inbuilt function. You could always write one using the iterator to extract each item, but you would need to manage the types as well.
Question 16 Dec 2012   license: CPOL
Is there a function to convert a vector to STL string in C++?I'm looking for something similar to a split/join type of functions available in other languages to split and join arrays.
Tip/Trick 16 Dec 2012   license: CPOL
How to choose an STL sorting algorithm.
Technical Blog 10 Dec 2012   license: CPOL
Well what are vectors anyway? The topic of vectors crop up in geometry, physics, engineering disciplines, mechanics, etc. How they are used, as well as their definitions at times, vary from context to context. Below I have listed how vectors are defined in some contexts: 1. In geometry, Euclidian (o
STL
Article 8 Dec 2012   license: CPOL
A non-MFC class to encapsulate the FTP protocol.
Answer 7 Dec 2012   license: CPOL
You should use std::string instead of char *.You always push the same address (str) in the vector and since the vector contains pointers and not values, the values are not copied. Thus you have added 3 time a pointer to the same address and since the content change at each iteration, at...
Question 7 Dec 2012   license: CPOL
#include #include #include using namespace std;int main(){ vector coll; char str[20]; for(int i = 0; i > str; coll.push_back(str); } for(int i = 0; i
Answer 7 Dec 2012   license: CPOL
The strings are succesfully added in the vector your problem is in printing themBecause you are printing str over and over (3 times) instead of printing coll[i].Change this cout
Answer 26 Nov 2012   license: CPOL
You are calling UtilityHelper::MvResolutionInfoToVTVideoStandard(sResInfo) Using the type name "UtilityHelper" rather than calling the function from an instance of UtilityHelper.Only static functions can be called in this way (i.e. no instance required).
Question 26 Nov 2012   license: CPOL
Hello friends, I stuck in an error. I have one stl mapstd::map m_mapJEngines; and I used this map in following way m_mapJEngines.insert(pair(UtilityHelper::MvResolutionInfoToVTVideoStandard(sResInfo), pJEngine)); I got...
Technical Blog 18 Nov 2012   license: CPOL
Multiple and nested coordinate spaces.
STL
Technical Blog 18 Nov 2012   license: CPOL
The 3-dimensional co-ordinate space.
STL
Answer 30 Oct 2012   license: CPOL
// your definition of your structuretypedef struct MachineList{ // details ...} MACHINELIST;// your vector declarationvector SS;But MACHINELIST does not take the struct keyword, as that is already implied from the typedef. I would also question why you are using BSTR types...

Page 1 of 17
1 2 3 4 5 6 7 8 9 10


Advertise | Privacy | Mobile
Web01 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid