Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

std::exception(3) [centos man page]

std::exception(3)					     Library Functions Manual						 std::exception(3)

std::exception - SYNOPSIS
Inherited by __gnu_cxx::__concurrence_broadcast_error, __gnu_cxx::__concurrence_lock_error, __gnu_cxx::__concurrence_unlock_error, __gnu_cxx::__concurrence_wait_error, __gnu_cxx::forced_error, __gnu_cxx::recursive_init_error, std::bad_alloc, std::bad_cast, std::bad_exception, std::bad_function_call, std::bad_typeid, std::bad_weak_ptr, std::ios_base::failure, std::logic_error, and std::runtime_error. Public Member Functions virtual const char * what () const noexcept Detailed Description Base class for all library exceptions. This is the base class for all exceptions thrown by the standard library, and by certain language expressions. You are free to derive your own exception classes, or use a different hierarchy, or to throw non-class data (e.g., fundamental types). Definition at line 60 of file exception. Member Function Documentation virtual const char* std::exception::what () const [virtual], [noexcept] Returns a C-style character string describing the general cause of the current error. Reimplemented in std::bad_function_call, std::ios_base::failure, std::bad_typeid, std::bad_cast, std::runtime_error, std::future_error, std::bad_exception, std::logic_error, std::bad_weak_ptr, and std::bad_alloc. Author Generated automatically by Doxygen for libstdc++ from the source code. libstdc++ Tue Jun 10 2014 std::exception(3)

Check Out this Related Man Page

std::integral_constant< _Tp, __v >(3cxx)								  std::integral_constant< _Tp, __v >(3cxx)

std::integral_constant< _Tp, __v > - SYNOPSIS
Inherited by std::__is_integral_helper< typename >, std::__is_signed_helper< _Tp, bool, bool >, std::__is_void_helper< typename >, std::__uses_allocator_helper< _Tp, _Alloc, bool >, std::chrono::__is_duration< _Tp >, std::is_array< _Tp[_Size]>, std::is_bind_expression< _Bind< _Signature > >, std::is_bind_expression< _Bind_result< _Result, _Signature > >, std::is_error_code_enum< _Tp >, std::is_error_code_enum< future_errc >, std::is_function< typename >, std::is_function< _Res(_ArgTypes...) const >, std::is_function< _Res(_ArgTypes...) const volatile >, std::is_function< _Res(_ArgTypes...)>, std::is_function< _Res(_ArgTypes......) const >, std::is_function< _Res(_ArgTypes......) const volatile >, std::is_function< _Res(_ArgTypes......) volatile >, std::is_lvalue_reference< typename >, std::is_rvalue_reference< typename >, std::is_rvalue_reference< _Tp && >, std::uses_allocator< priority_queue< _Tp, _Sequence, _Compare >, _Alloc >, std::uses_allocator< queue< _Tp, _Seq >, _Alloc >, and std::uses_allocator< stack< _Tp, _Seq >, _Alloc >. Public Types typedef integral_constant< _Tp, __v > type" typedef _Tp value_type Public Member Functions constexpr operator value_type () Static Public Attributes static constexpr _Tp value Detailed Description template<typename _Tp, _Tp __v>struct std::integral_constant< _Tp, __v > integral_constant Definition at line 72 of file type_traits. Author Generated automatically by Doxygen for libstdc++ from the source code. libstdc++ Tue Nov 27 2012 std::integral_constant< _Tp, __v >(3cxx)
Man Page

15 More Discussions You Might Find Interesting

1. Programming

better way than strtok?

Hi all, Right now I'm using this but it seems to be a hack: if (prefix(arg, "mark=")) { for (markid = strtok(args,"="); markid; markid=strtok((char *)NULL, "=")) { basically the user passes "mark=ny" to the command. I want to be able to extract "ny" from that... (7 Replies)
Discussion started by: annie
7 Replies

2. UNIX for Advanced & Expert Users

C++ Compiling error.. Symbol Reference

Undefined first referenced symbol in file std::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator(unsigned int) const/var/tmp//cc9ACJBX.o std::basic_istream<char, std::char_traits<char> >& std::operator>><char,... (3 Replies)
Discussion started by: bjena
3 Replies

3. Programming

Link against a particular version of libstdc++

Our development machines have and When we build our native code, it uses Is there anyway I can force it to use instead ? $ ldd try /usr/lib/ (0x00655000) => /usr/lib/ (5 Replies)
Discussion started by: vino
5 Replies

4. Shell Programming and Scripting

Reg: Search for a directory

Dear All, I am new to Unix and i need a small Help from you Guys..... The current structure of my system is as follows: /Abc/xyz/cpd/std/re/doc Each cpd directory has n number of std's. Each std has n number of re's. My requirement is to write a UNIX script that would search whether doc... (8 Replies)
Discussion started by: Rajanikanth
8 Replies

5. AIX

libstdc++.a ( issue on AIX 5.2

hello everybody i am new on the AIX environment and i have faced an issue while running pstill it can't find ibstdc++.a ( although i have the latest GCC and libstdc 4.0.0 i guess. So to resolve the problem i have got an old versions that i want to install on AIX: ... (5 Replies)
Discussion started by: eternalflame
5 Replies

6. Programming

Trubble in executing the cpp program...

I wrote a code like this....... #include <iostream> #include <stdio.h> #include <mysql.h> #include <string.h> #include <stdlib.h> using namespace std; #include "Connection.h" int main() { char *Host = (char *)"localhost"; char *Database =(char *)"sachin"; char... (3 Replies)
Discussion started by: ps_sach
3 Replies

7. Programming

How to get the sizeof char pointer

The below code throws the error, since the size of x = 19 is not passed to the cstrCopy function. using namespace std; static void cstrCopy(char *x, const char*y); int main () { char x; const string y = "UNIX FORUM"; cstrCopy(x,y.c_str()); return 0; } void cstrCopy(char *x,... (3 Replies)
Discussion started by: SamRoj
3 Replies

8. Shell Programming and Scripting

PDKSH dual std input threads

Hi All, I'm trying to read from two files at the same time, but the second READ is failing, giving no value. Obvious STDIN is being used by the first "while read", so how can I retrieve a value from a second file within the loop ?? IFS=" ," cat $DATAFILE | while read curdate currentcksum... (3 Replies)
Discussion started by: adrianmarsh
3 Replies

9. Programming

Runtime error in C++ Program - Help

All, I am getting this when i try to ran a program in HP unix. Things i came across 1. i have a system HP-UNIX where this same exe is working. 2. We have set a new HP_UNIX with the same configration and copied the exe to the new system we are getting this error. 3. Only... (3 Replies)
Discussion started by: arunkumar_mca
3 Replies

10. Programming

"cout = outFile" is not compiled

Hello, Compilation of the line "cout = outFile" throws error "Error: std::ios_base::operator=(const std::ios_base&) is not accessible from std::ios ::operator=(const std::ios &)." outFile is declared as "static ofstream". Thanks, Shafi (3 Replies)
Discussion started by: shafi2all
3 Replies

11. Programming

Help... runtime error in my maxheap sort program

#include<iostream> using namespace std; int *a,size,heapsize; void maxheap(int *a,int j) { int l,r,largest,temp; l=2*j; r=(2*j)+1; for(j=0;j<size;++j) { if(l<=heapsize && a>a) largest=l; else largest=j; if(r<=heapsize... (5 Replies)
Discussion started by: poonam.gaigole
5 Replies

12. Programming

Symbol differences in STLport library and application object file

Hello, I compiled the object file of a binary and i could see the symbol , "void*std::__node_alloc<1,0>::_M_allocate(unsigned)", this is actually present as "void*std::__node_alloc<true,0>::_M_allocate(unsigned)" in the . This has been verified with "nm -C " command Please... (4 Replies)
Discussion started by: shafi2all
4 Replies

13. Programming

About uncopyable class (on book:Effective C++)

See the following code: #include<iostream> using namespace std; class Uncopyable { protected: Uncopyable(){cout<<"hehe\n";} ~Uncopyable(){} private: Uncopyable(const Uncopyable &rhs){cout<<"oooops\n";}; Uncopyable& operator=(const Uncopyable &rhs); }; class Dog :... (5 Replies)
Discussion started by: vistastar
5 Replies

14. Programming


my this program is working when the argument is not provided why its not working when i m providing argument? code : #include<iostream> #include <dirent.h> using namespace std; int main(int agrc ,char *val) { DIR*dir; struct dirent * abcd; if(!val) {... (3 Replies)
Discussion started by: shellwe
3 Replies

15. Shell Programming and Scripting

Capture std out snapshot after 15 seconds

I have a program that scans and updates its results to std out every second. I would like to capture its output for further processing, but there is a catch. I would like to capture a snapshot after about 15 seconds as the results become more accurate and close the program. Obviously I can simply... (4 Replies)
Discussion started by: Riker1204
4 Replies