Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Data Structures | Macros | Functions
20.auto.ptr.cpp File Reference
#include <rw/_defs.h>
#include <memory>
#include <rw_cmdopt.h>
#include <rw_driver.h>
Include dependency graph for 20.auto.ptr.cpp:

Go to the source code of this file.

Data Structures

struct  Base< T >
 
struct  Derived< T >
 
struct  has_implicit_ctor
 

Macros

#define TEST_CLASS_DEF(name, Tparam)
 
#define FUN(result, T, name, arg_list)
 

Functions

 TEST_CLASS_DEF (auto_ptr_ref,< int >)
 
 TEST_CLASS_DEF (auto_ptr,< int >)
 
void is_explicit (const std::auto_ptr< Base > &)
 
void is_explicit (const has_implicit_ctor &)
 
template<class T >
void test_auto_ptr (T *, const char *tname)
 
int main (int argc, char *argv[])
 

Macro Definition Documentation

◆ FUN

#define FUN (   result,
  T,
  name,
  arg_list 
)
Value:
do { \
result (std::auto_ptr<T>::*pf) arg_list = &std::auto_ptr<T>::name; \
_RWSTD_UNUSED (pf); \
} while (0)
#define T
Definition 17.names.cpp:163
#define pf
Definition 17.names.cpp:516
const char * name
Definition codecvt1.cpp:72
Definition json.h:5363

◆ TEST_CLASS_DEF

#define TEST_CLASS_DEF (   name,
  Tparam 
)
Value:
template class std::name Tparam \
/* void name (void *name) */

20.autoptr.cpp - test exercising [lib.auto.ptr]

$Id$

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2000-2007 Rogue Wave Software, Inc.

Definition at line 49 of file 20.auto.ptr.cpp.

Function Documentation

◆ is_explicit() [1/2]

void is_explicit ( const has_implicit_ctor &  )

Definition at line 145 of file 20.auto.ptr.cpp.

◆ is_explicit() [2/2]

void is_explicit ( const std::auto_ptr< Base > &  )

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 455 of file 20.auto.ptr.cpp.

◆ test_auto_ptr()

template<class T >
void test_auto_ptr ( T *  ,
const char *  tname 
)

Definition at line 149 of file 20.auto.ptr.cpp.

◆ TEST_CLASS_DEF() [1/2]

TEST_CLASS_DEF ( auto_ptr  ,
< int >   
)

◆ TEST_CLASS_DEF() [2/2]

TEST_CLASS_DEF ( auto_ptr_ref  ,
< int >   
)