Code Search for Developers
 
 
  

mm.cc from AlphaMail at Krugle


Show mm.cc syntax highlighted

#include <map>
#include <iostream>

using namespace std;

class t
{
   public:
      t() { cout << "no-arg Constructor" << endl; }
      t(const t& t2) { cout << "Copy Constructor" << endl; }
      ~t() { cout << "Destructor" << endl; }
      void f() { cout << "f()" << endl; }
};

int main()
{
   cout << "abc constr" << endl;
   t a,b,c;

   map <int, t> v;
   map <int, t>::iterator i;
   cout << "copying into map" << endl;
   v[0] = a;
   v[1] = b;
   v[2] = c;
   i=v.begin();
   cout << "Erasing element 0" << endl;
   v.erase(i);
   i++;
   cout << "Erasing element 1" << endl;
   v.erase(i);
   i++;
   cout << "Erasing element 2" << endl;
   v.erase(i);
   cout << "abc Destructors" << endl;
}




See more files for this project here

AlphaMail

AlphaMail is an accelerated web mail interface with a C++ middleware layer that is more effective than an IMAP proxy which is a highly scalable (10k+ users). The interface includes modern features, Section 508 compliance, and universal browser support.

Project homepage: http://sourceforge.net/projects/alphamail
Programming language(s): C++,Java,JavaScript,Perl
License: other

  jcorba/
    IMAPClient.java
    IMAPServer.java
    imap.idl
  Makefile
  cache_entry.cc
  client_socket.cc
  date_time.cc
  imaps_test.cc
  map_test.cc
  mkdir.cc
  mm.cc
  oop.cc
  parse_response.cc
  regex1.cc
  request_processor.cc
  server_socket.cc
  split.cc
  ssl.c
  ssl_client.cpp