Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8931485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:07:26+00:00 2026-06-15T09:07:26+00:00

In the Microsoft Visual C++ 6.0 STL implementation how, as a user of one

  • 0

In the Microsoft Visual C++ 6.0 STL implementation
how, as a user of one of the STL classes do you determine
if the function has failed?

For example, vector::insert has these prototypes:

void insert(iterator it, size_type n, const T& x);
void insert(iterator it, const_iterator first, const_iterator last);

But there is no failure return value and there is no mention
in the documentation of an exception thrown to indicate
a failure.

Does anyone know how to test for a failure in this or
another STL class in MSVC++ 6.0 ? Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T09:07:27+00:00Added an answer on June 15, 2026 at 9:07 am

    Inserting into a vector won’t fail unless the container is unable to allocate memory or your copy constructor throws an exception. In both cases, you detect the failure by catching the exception.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Microsoft Visual Studio Unable to start program 'theprogram.exe'. This application has failed to start
I am using Microsoft Visual Studio debugger to debug a remote application. These are
I use Microsoft Visual Studio test Tools assembly for unit testing. And from one
I have this version: Microsoft Visual C# 2008 Express Edition Using this function: var
Microsoft Visual C++ compiler has the property declaration construction __declspec( property( get=get_func_name, put=put_func_name )
Has made a .sdf database file in Microsoft Visual Web Developer 2010. When I
I am using Microsoft Visual C++ 2010. If I have a function like this:
IDE: Microsoft Visual Studio Professional 2008 Language: C# Background: I have one form and
In Microsoft Visual Studio 6.0, you could create several files at once by spacing
environment: microsoft visual studio 2008 c# How do I get the index of a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.