2
0
mirror of https://github.com/boostorg/ublas.git synced 2026-02-26 05:02:16 +00:00

all type default constructed with init

This commit is contained in:
Michael Stevens
2004-09-22 18:01:06 +00:00
parent c2c8d01081
commit 2dee8c540c
7 changed files with 15 additions and 0 deletions

View File

@@ -38,6 +38,7 @@ struct test_my_vector {
// Default Construct
VP default_constuct;
initialize_vector (default_constuct);
std::cout << "default construct = " << default_constuct << std::endl;
// Copy and swap

View File

@@ -35,6 +35,7 @@ struct test_my_matrix {
// Default Construct
MP default_constuct;
initialize_matrix (default_constuct);
std::cout << "default construct = " << default_constuct << std::endl;
// Copy and swap

View File

@@ -37,6 +37,11 @@ struct test_my_vector {
size_type i;
real_type n;
// Default Construct
VP default_constuct;
initialize_vector (default_constuct);
std::cout << "default construct = " << default_constuct << std::endl;
// Copy and swap
initialize_vector (v1);
initialize_vector (v2);

View File

@@ -38,6 +38,11 @@ struct test_my_matrix {
{
value_type t;
// Default Construct
MP default_constuct;
initialize_matrix (default_constuct);
std::cout << "default construct = " << default_constuct << std::endl;
// Copy and swap
initialize_matrix (m1);
initialize_matrix (m2);

View File

@@ -36,6 +36,7 @@ struct test_my_matrix {
// Default Construct
MP default_constuct;
initialize_matrix (default_constuct);
std::cout << "default construct = " << default_constuct << std::endl;
// Copy and swap

View File

@@ -36,6 +36,7 @@ struct test_my_matrix {
// Default Construct
MP default_constuct;
initialize_matrix (default_constuct);
std::cout << "default construct = " << default_constuct << std::endl;
// Copy and swap

View File

@@ -37,6 +37,7 @@ struct test_my_matrix {
// Default Construct
MP default_constuct;
initialize_matrix (default_constuct);
std::cout << "default construct = " << default_constuct << std::endl;
// Copy and swap