{"action":"reopened","issue":{"url":"https://api.github.com/repos/kokkos/kokkos/issues/244","repository_url":"https://api.github.com/repos/kokkos/kokkos","labels_url":"https://api.github.com/repos/kokkos/kokkos/issues/244/labels{/name}","comments_url":"https://api.github.com/repos/kokkos/kokkos/issues/244/comments","events_url":"https://api.github.com/repos/kokkos/kokkos/issues/244/events","html_url":"https://github.com/kokkos/kokkos/issues/244","id":149918124,"number":244,"title":"view.empty ??","user":{"login":"kyungjoo-kim","id":6992602,"avatar_url":"https://avatars.githubusercontent.com/u/6992602?v=3","gravatar_id":"","url":"https://api.github.com/users/kyungjoo-kim","html_url":"https://github.com/kyungjoo-kim","followers_url":"https://api.github.com/users/kyungjoo-kim/followers","following_url":"https://api.github.com/users/kyungjoo-kim/following{/other_user}","gists_url":"https://api.github.com/users/kyungjoo-kim/gists{/gist_id}","starred_url":"https://api.github.com/users/kyungjoo-kim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyungjoo-kim/subscriptions","organizations_url":"https://api.github.com/users/kyungjoo-kim/orgs","repos_url":"https://api.github.com/users/kyungjoo-kim/repos","events_url":"https://api.github.com/users/kyungjoo-kim/events{/privacy}","received_events_url":"https://api.github.com/users/kyungjoo-kim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-20T23:56:28Z","updated_at":"2016-04-25T17:01:38Z","closed_at":null,"body":"A interface to see that a view is not initialized might be necessary. For example,\r\n```\r\nKokkos::View<double*> a;  // this is declared but not yet initialized\r\na.size(); // this returns 1\r\na.span(); // this returns 1\r\n```\r\n\r\nI need to compare an input view is initialized or not. I can do ....\r\n```\r\nif (a.data() == NULL) { \r\n   a = View<double*>(\"i need\", 1);\r\n} else {\r\n  do_something(a);\r\n}\r\n```\r\ncan I assume that the view always have null pointer ? or can you provide a function to determine the state of a view ? like a.empty() ?\r\n\r\n"}}