About template constraints


 
Thread Tools Search this Thread
Top Forums Programming About template constraints
# 1  
Old 11-21-2005
About template constraints

Hi, i have class template,

1)can i override the copy constructor

2)can we have virtual function in class template

if not plz tel why? I tried , compile error comes for me...

Thanks
Sarwan
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Solaris

Need help in configuring Password Constraints for Solaris 11.3

Hello Friends I was running Solaris 11.3 x86. Below is my configuration to set password Constraints. more /etc/default/passwd MAXWEEKS=4 MINWEEKS=1 WARNWEEKS=1 PASSLENGTH=8 NAMECHECK=YES HISTORY=4 MINDIFF=3 MINALPHA=2 (4 Replies)
Discussion started by: jebby123
4 Replies

2. UNIX for Dummies Questions & Answers

Grep with time constraints

Hello Friends - I am trying to grep certain messages that have a time slot like this: MyRate=33FC|SystemDEF=445DE|Calc=33W2|Time=15:50:24 I am trying to grep everything after Time=15:50:26 including SystemDEF=E2S and Calc=33W2 into a file called myrate.dat Not able to... (7 Replies)
Discussion started by: DallasT
7 Replies

3. Shell Programming and Scripting

Parsing a file based on positional constraints

I have a list file1 like dog cow fox cat fish duck crowI want to classify the elements of file1 based on constrains applied on file2. Additionally the number of elements (words) in the each line of file2 is not fixed. This is my file2 cow cat fox dog cow fox dog fish crow fox dog cat ... (5 Replies)
Discussion started by: sammy777
5 Replies

4. Solaris

Pkg update: No solution was found to satisfy constraints

I have an x86 Solaris box running 11.2 and have run into the following issue when attempting to run a package update. Has anyone else come across this issue and resolved it successfully, or am I waiting on Oracle to release other updated packages? uname -a SunOS <hostname> 5.11 11.2... (13 Replies)
Discussion started by: nova_cyclist
13 Replies

5. UNIX for Advanced & Expert Users

Teradata and Informatica Load constraints

HI Team , I have interesting issue observed when using teradata sql assistant(14.1) and Informatica tool (9.5) versions. I created SQL code in teradata where source count is 5000 records . I am using source and target database as teradata and trying to load using informatica tool . Its straight... (0 Replies)
Discussion started by: Perlbaby
0 Replies

6. UNIX and Linux Applications

Help in copying table structure to another table with constraints in Oracle

hi, i need to copy one table with data into another table, right now am using create table table1 as select * from table2 i want the constraints of table1 to be copied to table2 also , can anyone give me some solution to copy the constraints also, now am using oracle 10.2.0.3.0... (1 Reply)
Discussion started by: senkerth
1 Replies

7. Programming

C++ template error

I get some compiling errors about template instantiation :wall: , but I can't find where the syntax errors happens. Can some help me? template<typename Type> class SingleList; template<typename Type> class SingleListNode{ private: friend class SingleList<Type>; SingleListNode() :... (1 Reply)
Discussion started by: 915086731
1 Replies

8. UNIX for Advanced & Expert Users

GZIP memory constraints

Currently I am using the ZLIB_VERSION "1.2.3" . The memory requirement for Zlib/GZIP compression is stated as /* The memory requirements for deflate are (in bytes): (1 << (windowBits+2)) + (1 << (memLevel+9)) that is: 128K for windowBits=15 + 128K for memLevel = 8 (default... (0 Replies)
Discussion started by: Parmod Garg
0 Replies
Login or Register to Ask a Question
std::pair< _T1, _T2 >(3cxx)											       std::pair< _T1, _T2 >(3cxx)

NAME
std::pair< _T1, _T2 > - SYNOPSIS
Public Types typedef _T1 first_type typedef _T2 second_type Public Member Functions constexpr pair () constexpr pair (const _T1 &__a, const _T2 &__b) template<class _U1 , class _U2 > constexpr pair (const pair< _U1, _U2 > &__p) constexpr pair (const pair &) template<class _U1 , class = typename std::enable_if<std::is_convertible<_U1, _T1>::value>::type> pair (_U1 &&__x, const _T2 &__y) template<class _U2 , class = typename std::enable_if<std::is_convertible<_U2, _T2>::value>::type> pair (const _T1 &__x, _U2 &&__y) template<class _U1 , class _U2 , class = typename std::enable_if<std::is_convertible<_U1, _T1>::value && std::is_convertible<_U2, _T2>::value>::type> pair (_U1 &&__x, _U2 &&__y) template<class _U1 , class _U2 > pair (pair< _U1, _U2 > &&__p) template<class... _Args1, class... _Args2> pair (piecewise_construct_t, tuple< _Args1...> __first, tuple< _Args2...> __second) pair & operator= (const pair &__p) pair & operator= (pair &&__p) template<class _U1 , class _U2 > pair & operator= (const pair< _U1, _U2 > &__p) template<class _U1 , class _U2 > pair & operator= (pair< _U1, _U2 > &&__p) void swap (pair &__p) Public Attributes _T1 first _T2 second Detailed Description template<class _T1, class _T2>struct std::pair< _T1, _T2 > Struct holding two objects of arbitrary type. Definition at line 87 of file stl_pair.h. Member Typedef Documentation template<class _T1, class _T2> typedef _T2 std::pair< _T1, _T2 >::second_type first_type is the first bound type Definition at line 90 of file stl_pair.h. Constructor &; Destructor Documentation template<class _T1, class _T2> constexpr std::pair< _T1, _T2 >::pair () [inline] second is a copy of the second object The default constructor creates first and second using their respective default constructors. Definition at line 99 of file stl_pair.h. template<class _T1, class _T2> constexpr std::pair< _T1, _T2 >::pair (const _T1 &__a, const _T2 &__b) [inline] Two objects may be passed to a pair constructor to be copied. Definition at line 103 of file stl_pair.h. template<class _T1, class _T2> template<class _U1 , class _U2 > constexpr std::pair< _T1, _T2 >::pair (const pair< _U1, _U2 > &__p) [inline] There is also a templated copy ctor for the pair class itself. Definition at line 108 of file stl_pair.h. Member Data Documentation template<class _T1, class _T2> _T1 std::pair< _T1, _T2 >::first second_type is the second bound type Definition at line 92 of file stl_pair.h. Referenced by std::_Temporary_buffer< _ForwardIterator, _Tp >::_Temporary_buffer(), std::set< _StateIdT >::insert(), std::operator<(), and std::operator==(). template<class _T1, class _T2> _T2 std::pair< _T1, _T2 >::second first is a copy of the first object Definition at line 93 of file stl_pair.h. Referenced by std::_Temporary_buffer< _ForwardIterator, _Tp >::_Temporary_buffer(), std::set< _StateIdT >::insert(), and std::operator==(). Author Generated automatically by Doxygen for libstdc++ from the source code. libstdc++ Tue Nov 27 2012 std::pair< _T1, _T2 >(3cxx)